Skip to content

Commit 9cf8386

Browse files
authored
fix: Add closing quote for nonce in inline partial script (#2377)
Fixes #2376
1 parent 8187189 commit 9cf8386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/rendering/fresh_tags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function renderFreshTags(
169169
: null,
170170
}),
171171
);
172-
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}` : "";
172+
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}"` : "";
173173
opts.bodyHtml +=
174174
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}>${escapedData}</script>`;
175175
}

0 commit comments

Comments
 (0)