Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(csp): remove unused font-src origins (#93848)

Tom Piccirelloe04d608d2291
diff --git a/posthog/middleware.py b/posthog/middleware.py
index 9075097043be..cd3c3ad8bb85 100644
--- a/posthog/middleware.py
+++ b/posthog/middleware.py
@@ -1213,7 +1213,7 @@ class CSPMiddleware:
"default-src 'self'",
f"style-src 'self' 'unsafe-inline' {resource_url} https://fonts.googleapis.com",
f"script-src 'self' 'nonce-{nonce}' {resource_url} https://*.i.posthog.com",
- f"font-src 'self' {resource_url} https://app-static.eu.posthog.com https://app-static-prod.posthog.com https://d1sdjtjk6xzm7.cloudfront.net https://fonts.gstatic.com https://cdn.jsdelivr.net https://assets.faircado.com https://use.typekit.net",
+ f"font-src 'self' {resource_url} https://app-static.eu.posthog.com https://app-static-prod.posthog.com https://fonts.gstatic.com https://cdn.jsdelivr.net",
"worker-src 'self'",
"child-src 'none'",
"object-src 'none'",