Skip to content

Commit 98f27d7

Browse files
committed
allow posthog generated scripts
1 parent c7865a6 commit 98f27d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function proxy(request: NextRequest) {
1111
// - Whitelisted Termly domains: app.termly.io and *.api.termly.io
1212
const cspHeader = `
1313
default-src 'self';
14-
script-src 'self' 'nonce-${nonce}' ${isDev ? "'unsafe-eval'" : ""} https://apis.google.com https://accounts.google.com https://*.posthog.com;
14+
script-src 'self' 'nonce-${nonce}' 'strict-dynamic' ${isDev ? "'unsafe-eval'" : ""} https://apis.google.com https://accounts.google.com https://*.posthog.com;
1515
style-src 'self' 'unsafe-inline';
1616
img-src 'self' blob: data: https://*.posthog.com https://app.termly.io https://*.googleusercontent.com;
1717
worker-src 'self' blob:;

0 commit comments

Comments
 (0)