Skip to content

Commit 989fa99

Browse files
committed
fix: update CSP to allow Clerk, Google Tag Manager, and Cloudflare scripts
1 parent e652a6b commit 989fa99

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

frontend/next.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ const securityHeaders = [
88
{ key: 'Strict-Transport-Security', value: 'max-age=31536000; includeSubDomains' },
99
{
1010
key: 'Content-Security-Policy-Report-Only',
11-
value:
12-
"default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' https://*.supabase.co https://*.trycheatcode.com",
11+
value: [
12+
"default-src 'self'",
13+
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.clerk.com https://clerk.trycheatcode.com https://www.googletagmanager.com https://static.cloudflareinsights.com",
14+
"style-src 'self' 'unsafe-inline'",
15+
"connect-src 'self' https://*.supabase.co https://*.trycheatcode.com https://*.clerk.com https://clerk.trycheatcode.com https://www.google-analytics.com",
16+
"img-src 'self' data: blob: https://*.clerk.com https://raw.githubusercontent.com",
17+
"frame-src 'self' https://*.clerk.com https://clerk.trycheatcode.com",
18+
"worker-src 'self' blob:",
19+
].join('; '),
1320
},
1421
];
1522

0 commit comments

Comments
 (0)