Skip to content

Commit

Permalink
fix: Add closing quote for nonce in inline partial script (#2377)
Browse files Browse the repository at this point in the history
Fixes #2376
  • Loading branch information
adamgreg committed Mar 21, 2024
1 parent 8187189 commit 9cf8386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/rendering/fresh_tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function renderFreshTags(
: null,
}),
);
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}` : "";
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}"` : "";
opts.bodyHtml +=
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}>${escapedData}</script>`;
}
Expand Down

0 comments on commit 9cf8386

Please sign in to comment.