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

[TASK] Track CSP nonce consumption

The new `ConsumableValue` class has been added, which is capable
of tracking how often a value has been used for any kind of output.
This way, it can be determined whether the nonce value would be
required at all.

This patch is a preparation for handling dynamic nonce values in
cached scenarios during the frontend rendering process.

Other occurrences of `$properties['nonce']` in `PageRenderer` were
without any specific functionality and just have been simplified.

Resolves: #100691
Releases: main
Change-Id: I7e200ba27d0e6f8d4dc3a20fc1ba333f398936ed
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78776


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent cc457e55
Branches
Tags
Showing with 102 additions and 36 deletions
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