Skip to content

Commit

Permalink
[FEATURE] #104549 - Disable Content Security Policy for a site (#4796)
Browse files Browse the repository at this point in the history
* [FEATURE] #104549 - Disable Content Security Policy for a site

Related: TYPO3-Documentation/Changelog-To-Doc#1001

Releases: main, 12.4

* Add anchor
  • Loading branch information
brotkrueml authored Oct 2, 2024
1 parent 89f12f2 commit 33284ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Documentation/ApiOverview/ContentSecurityPolicy/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,22 @@ 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


.. _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/<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 33284ce

Please sign in to comment.