#109814Add nonce to JavaScript modules
Description
Currently, using JavaScript modules via the
@AssetCollector->addJavaScriptModule@ does not add nonces.
This usually works because the default Content Security Policy (CSP)
settings set the "self" source list keyword .
However, if the website wants the CSP to only allow nonces,
then none of the JavaScript modules will load.
First reported at: https://github.com/FriendsOfTYPO3/visual_editor/issues/78
Reviews 1
History 24
-
Matthias Vogel changed description <span data-processor="relativetime" data-value="2026-05-11T12:22:22+00:00" > 05/11/26, 12:22 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94054 status
NewUnder Review <span data-processor="relativetime" data-value="2026-05-11T12:22:31+00:00" > 05/11/26, 12:22 </span> -
Gerrit Code Review pushed patch set 2 for main to change 94054 <span data-processor="relativetime" data-value="2026-05-11T12:28:27+00:00" > 05/11/26, 12:28 </span>
-
Matthias Vogel changed subject
[BUGFIX] Add nonce to JavaScript modulesAdd nonce to JavaScript modules <span data-processor="relativetime" data-value="2026-05-11T12:31:18+00:00" > 05/11/26, 12:31 </span>