Skip to content

Commit 3743aff

Browse files
committed
Add info about CSP in the response service
1 parent 0a79735 commit 3743aff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

guide/index.rst

+20
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,8 @@ Response Config Options
966966
'auto_language' => false,
967967
'language_instance' => 'default',
968968
'cache' => null,
969+
'csp' => [],
970+
'csp_report_only' => [],
969971
'request_instance' => 'default',
970972
],
971973
],
@@ -1002,6 +1004,24 @@ to set cache seconds and optionally ``public`` to true or false to ``private``.
10021004

10031005
The default is not to set these settings.
10041006

1007+
csp
1008+
"""
1009+
1010+
If it is empty, it does nothing.
1011+
1012+
It can take an array of directives to initialize an instance of
1013+
``Framework\HTTP\CSP`` and pass it as the **Content-Security-Policy** of the
1014+
response.
1015+
1016+
csp_report_only
1017+
"""""""""""""""
1018+
1019+
If it is empty, it does nothing.
1020+
1021+
It can take an array of directives to initialize an instance of
1022+
``Framework\HTTP\CSP`` and pass it as the **Content-Security-Policy-Report-Only**
1023+
of the response.
1024+
10051025
request_instance
10061026
""""""""""""""""
10071027

0 commit comments

Comments
 (0)