fix: Add closing quote for nonce in inline partial script (#2377)
Fixes #2376
This commit is contained in:
@@ -169,7 +169,7 @@ export function renderFreshTags(
|
|||||||
: null,
|
: null,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}` : "";
|
const nonce = renderState.csp ? ` nonce="${renderState.getNonce()}"` : "";
|
||||||
opts.bodyHtml +=
|
opts.bodyHtml +=
|
||||||
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}>${escapedData}</script>`;
|
`<script id="__FRSH_PARTIAL_DATA_${renderState.renderUuid}" type="application/json"${nonce}>${escapedData}</script>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user