Issue Bug Under Review Orphaned

#109814Add nonce to JavaScript modules

Matthias Vogel 05/11/26, 12:21 updated 05/11/26, 12:31

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

  1. Matthias Vogel changed subject [BUGFIX] Add nonce to JavaScript modules Add nonce to JavaScript modules <span data-processor="relativetime" data-value="2026-05-11T12:31:18+00:00" > 05/11/26, 12:31 </span>