File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1111,11 +1111,11 @@ Content Security Policy and CSS Files
11111111If your importmap includes CSS files, AssetMapper uses a trick to load those by
11121112adding ``data:application/javascript `` to the rendered importmap (see
11131113:ref: `Handling CSS <asset-mapper-handling-css >`).
1114+
11141115This 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
You can’t perform that action at this time.
0 commit comments