diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-02-01 14:13:38 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-02-02 07:30:19 -0500 |
| commit | da2125b5629ebca438241c5ce3eb833c63214aeb (patch) | |
| tree | bf1cd3eaad5dfa96f33627c4b4ee33aa430bbc48 | |
| parent | 77b306ea0fea54ed440a369dc38161331602386c (diff) | |
[6.0.x] Added missing quotes around nonce in docs/ref/csp.txt.
Backport of 986f7f2098a2186b4085183951cbebae15220556 from main.
| -rw-r--r-- | docs/ref/csp.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/csp.txt b/docs/ref/csp.txt index 5d0a9c0ecb..b5bf0c5f2e 100644 --- a/docs/ref/csp.txt +++ b/docs/ref/csp.txt @@ -261,7 +261,7 @@ expression into the CSP header. To use this nonce in templates, the :func:`~django.template.context_processors.csp` context processor needs to be enabled. It adds a ``csp_nonce`` variable to the template context, allowing -inline elements to include a matching ``nonce={{ csp_nonce }}`` attribute in +inline elements to include a matching ``nonce="{{ csp_nonce }}"`` attribute in inline scripts or styles. The browser will only execute inline elements that include a ``nonce=<value>`` |
