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

[TASK] Introduce Content-Security-Policy-Report-Only handling

+ new feature flag `security.frontend.reportContentSecurityPolicy`,
  to be used next to `security.frontend.enforceContentSecurityPolicy`,
  resulting in `Content-Security-Policy-Report-Only` and/or
  `Content-Security-Policy` HTTP headers
+ new `enforce` and `report` segments in `csp.yaml` site config
+ possibility to disable CSP for a particular site by either setting
  `active: false` in the `csp.yaml` site config
+ allows having the HTTP headers `Content-Security-Policy` and
  `Content-Security-Policy-Report-Only` side-by-side in the frontend

Resolves: #101580
Resolves: #104549
Releases: main, 12.4
Change-Id: I8c1a8305702629eac1bfedddbecbc19b452fd500
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85632


Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 7c920f26
Branches
Tags
No related merge requests found
Showing
with 940 additions and 82 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