Skip to content
Snippets Groups Projects
Commit 775073d6 authored by Oliver Hader's avatar Oliver Hader Committed by Andreas Fernandez
Browse files

[TASK] Add Content-Security-Policy hash declarations

Add the possibility to extend the Content-Security-Policy model by
cryptographic hashes - which can either be static or a dynamic proxy:

* `$type = HashType::sha256;`
* `new HashValue('<base64-hash>', $type);`
* `HashProxy::glob('EXT:my/Resources/Public/*.js')->withType($type);`
* `HashProxy::urls('https://example.org/worker.js')->withType($type);`

Resolves: #100141
Related: #99499
Releases: main
Change-Id: I7a3ee4fdea2c87bce9fc013688ffba7f21b680aa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78102


Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 3d1a55ba
Branches
Tags
No related merge requests found
Showing
with 532 additions and 47 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