From 19e4f28b3674cfc5ca4d88d4b845a523b9676737 Mon Sep 17 00:00:00 2001 From: Nic Wortel Date: Mon, 6 May 2024 20:30:11 +0200 Subject: [PATCH] [AssetMapper] Document how to make it work with a Content Security Policy --- frontend/asset_mapper.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index c4ec17337ef..dfc6a196430 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -1061,6 +1061,27 @@ have *one* importmap, so ``importmap()`` must be called exactly once. If, for some reason, you want to execute *only* ``checkout.js`` and *not* ``app.js``, pass only ``checkout`` to ``importmap()``. +Using a Content Security Policy (CSP) +------------------------------------- + +If you're using a `Content Security Policy`_ (CSP) to prevent cross-site +scripting attacks, the inline ``