Skip to content

Commit 8929812

Browse files
committed
Allow Cloudflare scripts in CSP
1 parent e6203e7 commit 8929812

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const nextConfig: NextConfig = {
5353
key: "Content-Security-Policy",
5454
value: [
5555
"default-src 'self'",
56-
"script-src 'self' 'unsafe-inline' 'unsafe-eval'",
56+
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://challenges.cloudflare.com https://static.cloudflareinsights.com",
5757
"style-src 'self' 'unsafe-inline'",
5858
"img-src 'self' data: blob: https:",
5959
"font-src 'self' data:",

0 commit comments

Comments
 (0)