From 33284ce84065ee54c57b9961464a8be8dd9de8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Wed, 2 Oct 2024 20:34:16 +0200 Subject: [PATCH] [FEATURE] #104549 - Disable Content Security Policy for a site (#4796) * [FEATURE] #104549 - Disable Content Security Policy for a site Related: https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/1001 Releases: main, 12.4 * Add anchor --- .../ApiOverview/ContentSecurityPolicy/Index.rst | 16 ++++++++++++++++ .../ContentSecurityPolicy/_csp_active.yaml | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 Documentation/ApiOverview/ContentSecurityPolicy/_csp_active.yaml diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/Index.rst b/Documentation/ApiOverview/ContentSecurityPolicy/Index.rst index e4e7364f9c..a4b07156f6 100644 --- a/Documentation/ApiOverview/ContentSecurityPolicy/Index.rst +++ b/Documentation/ApiOverview/ContentSecurityPolicy/Index.rst @@ -121,6 +121,22 @@ used to declare policies for a specific site, for example: :language: yaml :caption: config/sites//csp.yaml | typo3conf/sites//csp.yaml + +.. _content-security-policy-site-active: + +Disable CSP for a site +~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 12.4.20 + +The Content Security Policy for a particular site can be disabled with the +:yaml:`active` key set to :yaml:`false`: + +.. literalinclude:: _csp_active.yaml + :language: yaml + :caption: config/sites//csp.yaml | typo3conf/sites//csp.yaml + + .. _content-security-policy-modes: Modes diff --git a/Documentation/ApiOverview/ContentSecurityPolicy/_csp_active.yaml b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_active.yaml new file mode 100644 index 0000000000..5f57b331cc --- /dev/null +++ b/Documentation/ApiOverview/ContentSecurityPolicy/_csp_active.yaml @@ -0,0 +1,2 @@ +# "active" is enabled by default if omitted +active: false