Skip to content
Snippets Groups Projects
Commit bc25c2f2 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Do not render nonceProxy if nonce has not been consumed

Allow proxies to cache the TYPO3 content by stripping the nonce from
the generated CSP header if the nonce was not actually consumed.

Also ensure that the nonce value substitution consumes a nonce
to ensure that a (replaced) nonces in cached-content receive
a matching CSP header as well.

Resolves: #103942
Releases: main, 12.4
Change-Id: I437c83de522ff4a6f4ee0ef2f13881d24bfb990c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84435


Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarKai Ole Hartwig <o.hartwig@moselwal.de>
Tested-by: default avatarWilli Wehmeier <wwwehmeier@gmail.com>
Reviewed-by: default avatarWilli Wehmeier <wwwehmeier@gmail.com>
parent ad4c39b0
Branches
Tags
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