Issue Bug Under Review Quiet

#110601Directive "strict-dynamic" not allowed for hash based Content Security Policy (CSP)

Patrick Broens 09/02/26, 11:41 updated 10/01/26, 07:55

Description

In TYPO3, the directive “strict-dynamic” is not allowed when using a hash based instead of nonce based CSP.

According to the MDN documentation, and others, it should be allowed for hash based CSP as well:
> The ‘strict-dynamic’ source expression specifies that the trust explicitly given to a script present in the markup, by accompanying it with a nonce or a hash , shall be propagated to all the scripts loaded by that root script. At the same time, any allowlist or source expressions such as ‘self’ or ‘unsafe-inline’ will be ignored.

In TYPO3 the directive is only allowed when using nonces, which is not right.

Reviews 1

History 25

  1. Garvin Hicking commented <span data-processor="relativetime" data-value="2026-09-02T15:33:46+00:00" > 09/02/26, 15:33 </span>

    @patrick Could you have a look at the attached patch if that improves the situation for you?

  2. Patrick Broens commented <span data-processor="relativetime" data-value="2026-09-03T09:49:42+00:00" > 09/03/26, 09:49 </span>

    @ghi Thanks for your work. It is working for me