Skip to content

Commit 73d748d

Browse files
authored
Merge pull request #7314 from kenjis/add-note-for-CSP-and-DebugBar
docs: add note for CSP and Debug Toolbar
2 parents 455b716 + 1336c08 commit 73d748d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

user_guide_src/source/outgoing/response.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ visit the following sites:
140140
Turning CSP On
141141
--------------
142142

143+
.. important:: The :ref:`Debug Toolbar <the-debug-toolbar>` may use Kint, which
144+
outputs inline scripts. Therefore, when CSP is turned on, CSP nonce is
145+
automatically output for the Debug Toolbar. However, if you are not using
146+
CSP nonce, this will change the CSP header to something you do not intend,
147+
and it will behave differently than in production; if you want to verify CSP
148+
behavior, turn off the Debug Toolbar.
149+
143150
By default, support for this is off. To enable support in your application, edit the ``CSPEnabled`` value in
144151
**app/Config/App.php**:
145152

0 commit comments

Comments
 (0)