Skip to content

Commit

Permalink
Merge pull request #1642 from appwrite/csp-hotfix
Browse files Browse the repository at this point in the history
update csp
  • Loading branch information
thejessewinton authored Jan 14, 2025
2 parents 16bf20e + b408c18 commit 23b972f
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' https://*.posthog.com",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.posthog.com https://*.plausible.io",
"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://*.appwrite.io https://*.appwrite.org https://*.posthog.com",
"connect-src 'self' https://*.appwrite.io https://*.appwrite.org https://*.posthog.com https://*.sentry.io https://*.plausible.io",
"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 23b972f

Please sign in to comment.