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
1111
1111
If your importmap includes CSS files, AssetMapper uses a trick to load those by
1112
1112
adding ``data:application/javascript `` to the rendered importmap (see
1113
1113
:ref: `Handling CSS <asset-mapper-handling-css >`).
1114
+
1114
1115
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.
1119
1119
1120
1120
.. note ::
1121
1121
You can’t perform that action at this time.
0 commit comments