Review main Merged

78102[TASK] Add Content-Security-Policy hash declarations

Oliver Hader CR +2 V +2 Hard +532 −47 updated 03/27/23, 14:20

Commit message

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);`

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 17