From 9cf838684e8bd8d0e9e0311b0c737201aaad3741 Mon Sep 17 00:00:00 2001 From: Adam Gregory Date: Thu, 21 Mar 2024 18:32:53 +0000 Subject: [PATCH] fix: Add closing quote for nonce in inline partial script (#2377) Fixes #2376 --- src/server/rendering/fresh_tags.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/rendering/fresh_tags.tsx b/src/server/rendering/fresh_tags.tsx index 07b3612c59e..40b2fd0034d 100644 --- a/src/server/rendering/fresh_tags.tsx +++ b/src/server/rendering/fresh_tags.tsx @@ -169,7 +169,7 @@ export function renderFreshTags( : null, }), ); - const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}` : ""; + const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}"` : ""; opts.bodyHtml += ``; }