Skip to content

Commit 4964d30

Browse files
committed
Minor tweak
1 parent f26f286 commit 4964d30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/asset_mapper.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,11 @@ Content Security Policy and CSS Files
11111111
If your importmap includes CSS files, AssetMapper uses a trick to load those by
11121112
adding ``data:application/javascript`` to the rendered importmap (see
11131113
:ref:`Handling CSS <asset-mapper-handling-css>`).
1114+
11141115
This can cause browsers to report CSP violations and block the CSS files from
1115-
being loaded.
1116-
To prevent this, you can add `strict-dynamic`_ to the ``script-src`` directive
1117-
of your Content Security Policy, to tell the browser that the importmap is
1118-
allowed to load other resources.
1116+
being loaded. To prevent this, you can add `strict-dynamic`_ to the ``script-src``
1117+
directive of your Content Security Policy, to tell the browser that the importmap
1118+
is allowed to load other resources.
11191119

11201120
.. note::
11211121

0 commit comments

Comments
 (0)