Skip to content

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

Studio: Enable PostHog toolbar via CSP frame-src (#41827)

Sean Oliver37306ed25df3
diff --git a/apps/studio/csp.js b/apps/studio/csp.js
index 1b58f5adf2f..c286aa55223 100644
--- a/apps/studio/csp.js
+++ b/apps/studio/csp.js
@@ -113,7 +113,12 @@ module.exports.getCSP = function getCSP() {
STAPE_URL,
POSTHOG_URL,
]
- const FRAME_SRC_URLS = [HCAPTCHA_ASSET_URL, STRIPE_JS_URL, STAPE_URL]
+ const FRAME_SRC_URLS = [
+ HCAPTCHA_ASSET_URL,
+ STRIPE_JS_URL,
+ STAPE_URL,
+ ...(isDevOrStaging ? [POSTHOG_URL] : []),
+ ]
const IMG_SRC_URLS = [
SUPABASE_URL,
SUPABASE_COM_URL,