Skip to content

Commit de68f8c

Browse files
committed
change docs from response based to request based
1 parent 68cdc67 commit de68f8c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • user_guide_src/source/outgoing

user_guide_src/source/outgoing/csp.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ For example, to enable/disable CSP for a specific response:
9393
.. literalinclude:: csp/017.php
9494

9595
The runtime value takes precedence over the ``CSPEnabled`` configuration value
96-
for the current response.
96+
for the current request.
9797

98-
These methods only affect the current response. After the response has been sent,
99-
the CSP instance is recreated and the value of ``CSPEnabled`` in
100-
**app/Config/App.php** is used as the default for subsequent requests.
98+
These methods only affect the current request. They do not modify the
99+
application configuration. On subsequent requests, the ``CSPEnabled`` value in
100+
**app/Config/App.php** is used again.
101101

102-
This allows applications to keep CSP enabled globally while temporarily disabling
103-
it for specific responses, or enable it only where required.
102+
This allows applications to keep CSP enabled globally while temporarily
103+
disabling it for specific requests, or enable it only where required.
104104

105105
Report Only
106106
===========

0 commit comments

Comments
 (0)