#100904Fallback to script-src and style-src
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
-
Oliver Hader changed description <span data-processor="relativetime" data-value="2023-05-20T11:31:03+00:00" > 05/20/23, 11:31 </span>
-
Oliver Hader changed description <span data-processor="relativetime" data-value="2023-07-27T13:08:35+00:00" > 07/27/23, 13:08 </span>
-
Riccardo De Contardi changed
parent task #99499<span data-processor="relativetime" data-value="2026-03-17T09:25:58+00:00" > 03/17/26, 09:25 </span> -
Georg Ringer commented and changed status
NewClosed <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-attrandstyle-src-elem(CSP level 3) were not yet supported by all browsers. This has changed: MDN listsscript-src-attrandstyle-src-attras “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-srcon their own, so TYPO3 does not need its own merge mechanism for the-attr/-elemvariants. 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.