Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: add CSP directive to allow posthog

Meetfa360b82089b
diff --git a/frontend/next.config.js b/frontend/next.config.js
index 9b9db1346a..e07695ed6e 100644
--- a/frontend/next.config.js
+++ b/frontend/next.config.js
@@ -2,6 +2,7 @@ const path = require("path");
const ContentSecurityPolicy = `
default-src 'self';
+ connect-src 'self' https://*.posthog.com;
script-src 'self' https://*.posthog.com https://js.stripe.com https://api.stripe.com https://widget.intercom.io https://js.intercomcdn.com https://hcaptcha.com https://*.hcaptcha.com 'unsafe-inline' 'unsafe-eval';
style-src 'self' https://rsms.me 'unsafe-inline' https://hcaptcha.com https://*.hcaptcha.com;
child-src https://api.stripe.com;