Skip to content

Commit 986f7f2

Browse files
Added missing quotes around nonce in docs/ref/csp.txt.
1 parent 674eda1 commit 986f7f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ref/csp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ expression into the CSP header.
261261
To use this nonce in templates, the
262262
:func:`~django.template.context_processors.csp` context processor needs to be
263263
enabled. It adds a ``csp_nonce`` variable to the template context, allowing
264-
inline elements to include a matching ``nonce={{ csp_nonce }}`` attribute in
264+
inline elements to include a matching ``nonce="{{ csp_nonce }}"`` attribute in
265265
inline scripts or styles.
266266

267267
The browser will only execute inline elements that include a ``nonce=<value>``

0 commit comments

Comments
 (0)