Skip to content
Snippets Groups Projects
Commit af9a058b authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] Replace CSP mutation mode extend by inherit & append

MutationMode::Extend has some ambiguity when being invoked
multiple times on modified ancestor source collections.
This change introduces the new MutationMode::InheritOnce,
MutationMode::InheritAgain and MutationMode::Append.

The implicit behavior of MutationMode::Extend changes from the
combination of MutationMode::InheritAgain + MutationMode::Append
to MutationMode::InheritOnce + MutationMode::Append to avoid
side effects with more configurations modifying the policy.

Static mutations loaded from ContentSecurityPolicies.php are
ordered accordoring to the packages dependency hierarchy. That
is the reason, the configuration from ext:core had to be moved
to both ext:backend and ext:frontend.

Resolves: #101797
Releases: main, 12.4
Change-Id: I7ab8e9d3f5635783d026f585f15c27ff62189959
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81574


Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent fe8d8e67
Branches
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment