Skip to content

Commit ffdf455

Browse files
author
Jaap Roes
committed
Add correct default to CSP_INCLUDE_NONCE_IN and a additional note
1 parent 80bf603 commit ffdf455

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/configuration.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ These settings affect the policy in the header. The defaults are in *italics*.
145145
``CSP_INCLUDE_NONCE_IN``
146146
Include dynamically generated nonce in all listed directives.
147147
A ``tuple`` or ``list``, e.g.: ``CSP_INCLUDE_NONCE_IN = ['script-src']``
148-
will add ``'nonce-<b64-value>'`` to the ``script-src`` directive. *None*
148+
will add ``'nonce-<b64-value>'`` to the ``script-src`` directive.
149+
*['default-src']*
150+
151+
Note: The nonce value will only be included if ``request.cps_nonce``
152+
is accessed during the request/response cycle.
149153

150154

151155
Changing the Policy

0 commit comments

Comments
 (0)