mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
chore: unsafe-eval
This commit is contained in:
1 file changed
+6
-5
@@ -36,11 +36,12 @@ const withBundleAnalyzer = bundleAnalyzer({
|
||||
|
||||
const isPreview = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' && process.env.VERCEL_ENV === 'preview'
|
||||
const scriptSrc = [
|
||||
"'unsafe-inline'",
|
||||
"'self' 'unsafe-inline' 'unsafe-eval'",
|
||||
"https://frontend-assets.supabase.com",
|
||||
"https://ph.supabase.green",
|
||||
"https://ph.supabase.com",
|
||||
isPreview ? "https://*.vercel.app/" : "",
|
||||
"https://ss.supabase.com",
|
||||
isPreview ? "https://ph.supabase.green": "https://ph.supabase.com",
|
||||
isPreview ? "https://*.vercel.app/" : "", // preview domain
|
||||
isPreview ? "https://vercel.live" : "", // debugger
|
||||
].filter(Boolean).join(" ")
|
||||
|
||||
const cspString = [
|
||||
@@ -115,7 +116,7 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
key: 'X-Content-Type-Options',
|
||||
value: 'no-sniff',
|
||||
value: 'nosniff',
|
||||
},
|
||||
{
|
||||
key: 'Referrer-Policy',
|
||||
|
||||
Reference in new issue
Block a user