diff --git a/frontend/next.config.js b/frontend/next.config.js index 5a3084db0..b9bd7ab72 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -36,6 +36,7 @@ const ContentSecurityPolicy = { "https://fonts.googleapis.com", process.env.NEXT_PUBLIC_SUPABASE_URL, "https://api.june.so", + "https://us.posthog.com", process.env.NEXT_PUBLIC_FRONTEND_URL, ], "connect-src": [ @@ -69,8 +70,11 @@ const ContentSecurityPolicy = { process.env.NEXT_PUBLIC_FRONTEND_URL, "https://www.google-analytics.com/", "https://js.stripe.com", + "https://us.posthog.com" + ], + "frame-src": ["https://js.stripe.com", + "https://us.posthog.com" ], - "frame-src": ["https://js.stripe.com"], "frame-ancestors": ["'none'"], "style-src": ["'unsafe-inline'", process.env.NEXT_PUBLIC_FRONTEND_URL], };