Support CSP nonce for webv2. Closes #2127

This commit is contained in:
Gabe Kangas
2022-12-12 16:57:17 -08:00
parent acc9cd39a5
commit 2fdbb1e482
4 changed files with 18 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ import { FC } from 'react';
export const ServerRenderedHydration: FC = () => (
<script
id="server-side-hydration"
nonce="{{.Nonce}}"
dangerouslySetInnerHTML={{
__html: `
window.configHydration = {{.ServerConfigJSON}};