Skip to content

Commit

Permalink
[FEATURE] #104549 - Disable Content Security Policy for a site
Browse files Browse the repository at this point in the history
Related: TYPO3-Documentation/Changelog-To-Doc#1001

Releases: main, 12.4
  • Loading branch information
brotkrueml committed Sep 30, 2024
1 parent 6db5048 commit 6081b09
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Documentation/ApiOverview/ContentSecurityPolicy/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ used to declare policies for a specific site, for example:
:language: yaml
:caption: config/sites/<my_site>/csp.yaml | typo3conf/sites/<my_site>/csp.yaml


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/<my_site>/csp.yaml | typo3conf/sites/<my_site>/csp.yaml


.. _content-security-policy-modes:

Modes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# "active" is enabled by default if omitted
active: false

0 comments on commit 6081b09

Please sign in to comment.