Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add worker to csp (#20644)

Terry Sutton554fcb2531d3
diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js
index d3016239990..67f86083115 100644
--- a/apps/studio/next.config.js
+++ b/apps/studio/next.config.js
@@ -46,6 +46,7 @@ const csp = [
`img-src 'self' blob: data: ${IMG_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${VERCEL_URL};`,
`style-src 'self' 'unsafe-inline' ${STYLE_SRC_URLS} ${VERCEL_LIVE_URL};`,
`font-src 'self' ${FONT_SRC_URLS} ${VERCEL_LIVE_URL};`,
+ `worker-src 'self' blob: data:;`,
]
: [
`default-src 'self' ${DEFAULT_SRC_URLS};`,
@@ -54,6 +55,7 @@ const csp = [
`img-src 'self' blob: data: ${IMG_SRC_URLS};`,
`style-src 'self' 'unsafe-inline' ${STYLE_SRC_URLS};`,
`font-src 'self' ${FONT_SRC_URLS};`,
+ `worker-src 'self' blob: data:;`,
]),
`object-src 'none';`,
`base-uri 'self';`,