Skip to content

Commit

Permalink
Merge pull request #1631 from appwrite/csp-fix
Browse files Browse the repository at this point in the history
update posthog csp
  • Loading branch information
thejessewinton authored Jan 10, 2025
2 parents d676f48 + 51e68c4 commit b342640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const securityheaders: Handle = async ({ event, resolve }) => {

const cspDirectives = [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.posthog.com",
"style-src 'self' 'unsafe-inline'",
"img-src 'self' data: https:",
"font-src 'self'",
Expand All @@ -50,7 +50,7 @@ const securityheaders: Handle = async ({ event, resolve }) => {
"frame-ancestors 'self' https://www.youtube.com https://*.vimeo.com",
'block-all-mixed-content',
'upgrade-insecure-requests',
"connect-src 'self' https://cloud.appwrite.io",
"connect-src 'self' https://cloud.appwrite.io https://*.posthog.com",
"frame-src 'self' https://www.youtube.com https://status.appwrite.online https://www.youtube-nocookie.com https://player.vimeo.com"
];

Expand Down

0 comments on commit b342640

Please sign in to comment.