Skip to content

Commit

Permalink
Fix CSP config
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkomath committed Jan 3, 2025
1 parent 7f9b527 commit 822e05a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/page/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({});

const ContentSecurityPolicy = `
script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: *;
style-src 'self' data: 'unsafe-inline' cdn.zapier.com;
style-src 'self' data: 'unsafe-inline';
img-src 'self' * data:;
font-src 'self';
connect-src 'self' wss: *.supabase.co *.changes.page *.intercom.io *.sentry.io vercel.live;
connect-src 'self' wss: *.supabase.co *.changes.page *.intercom.io *.sentry.io vercel.live *.zapier.com;
report-to default
`;

Expand Down
4 changes: 2 additions & 2 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const withBundleAnalyzer = require("@next/bundle-analyzer")({});

const ContentSecurityPolicy = `
script-src 'self' 'unsafe-eval' 'unsafe-inline' *;
script-src 'self' 'unsafe-eval' 'unsafe-inline' * cdn.zapier.com;
style-src 'self' data: 'unsafe-inline' maxcdn.bootstrapcdn.com cdn.jsdelivr.net;
img-src 'self' * data: blob:;
font-src 'self' data: maxcdn.bootstrapcdn.com cdn.jsdelivr.net;
connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com;
connect-src 'self' wss: *.supabase.co *.changes.page manageprompt.com *.zapier.com;
worker-src 'self' blob:;
report-to default
`;
Expand Down

0 comments on commit 822e05a

Please sign in to comment.