Skip to content

Commit

Permalink
fix: allow self and blob to load media in CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner authored and jakeaturner committed Aug 1, 2024
1 parent 924d7db commit bad0b1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ app.use(
],
frameSrc: ["'self'", "https://*.libretexts.org", "https://*.cloudflare.com", "https://www.youtube.com", "https://*.cloudflarestream.com"], // Cloudflare (Turnstile), YouTube, Cloudflare Stream
imgSrc: ["'self'", "https:", "data:"],
mediaSrc: ["'self'", "blob:"],
objectSrc: ["none"],
scriptSrc: [
"'self'",
Expand Down

0 comments on commit bad0b1c

Please sign in to comment.