Issue Bug Closed

#100904Fallback to script-src and style-src

Oliver Hader 05/20/23, 11:24 updated 11/14/26, 18:19

Description

Using CSP in the wild still shows several browsers not supporting the -attr or -elem (CSP level 3) variants of script-src and style-src (CSP level 1). Therefore it seems to be required, to introduce an internal merge/fall-back possibility, but still keeping the specific -attr or -elem declarations for the future.

Thus, when instructed, the -attr or -elem declarations shall be merged into their parent script-src and style-src directives. The instruction might be different for each scope (backend, frontend, frontend-site).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-14T18:19:29+00:00" > 11/14/26, 18:19 </span>

    The issue was raised in 2023, when script-src-attr, script-src-elem, style-src-attr and style-src-elem (CSP level 3) were not yet supported by all browsers. This has changed: MDN lists script-src-attr and style-src-attr as “Baseline widely available”, supported by all major browsers since December 2022.

    Browsers that do not know a CSP level 3 directive fall back to the parent script-src / style-src / default-src on their own, so TYPO3 does not need its own merge mechanism for the -attr / -elem variants. The code in TYPO3 core does not implement such a merge, and given the browser support there is no remaining need for it.

    Therefore I am closing this issue as obsolete. Feel free to pick this up again if you are still interested, or if you know of a concrete browser that still needs the fallback.