Skip to content

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

fix: Remove all csp rules for non-platform studio (#21666)

Ivan Vasilov59a109a78f3e
diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js
index dd066e538aa..0c33363bf66 100644
--- a/apps/studio/next.config.js
+++ b/apps/studio/next.config.js
@@ -371,7 +371,7 @@ const nextConfig = {
},
{
key: 'Content-Security-Policy',
- value: csp,
+ value: process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' ? csp : "frame-ancestors 'none';",
},
{
key: 'Referrer-Policy',