From 986f7f2098a2186b4085183951cbebae15220556 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 1 Feb 2026 14:13:38 -0500 Subject: [PATCH] Added missing quotes around nonce in docs/ref/csp.txt. --- docs/ref/csp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=``