Skip to content

Commit

Permalink
Fix issue with iframes and sentry script not loading due to CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Feb 18, 2025
1 parent eda71fc commit cb315df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Util/Function/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ export const variables = async (

res.setHeader(
"Content-Security-Policy",
"default-src 'self' 'unsafe-inline' www.youtube.com youtube.com status.discordextremelist.xyz cdn.jsdelivr.net cdnjs.cloudflare.com static.cloudflareinsights.com js.sentry-cdn.com fonts.googleapis.com fonts.gstatic.com stats.g.doubleclick.net; " +
"default-src 'self' 'unsafe-inline' status.discordextremelist.xyz cdn.jsdelivr.net cdnjs.cloudflare.com static.cloudflareinsights.com js.sentry-cdn.com browser.sentry-cdn.com fonts.googleapis.com fonts.gstatic.com stats.g.doubleclick.net; " +
"img-src *; " +
"worker-src 'self';"
"worker-src 'self'; " +
"frame-src *;"
);

next();
Expand Down

0 comments on commit cb315df

Please sign in to comment.