allow video in CSP

This commit is contained in:
k00b 2024-09-04 09:58:05 -05:00
parent 07b98c3253
commit 5a00f7b825
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export function middleware (request) {
"font-src 'self' a.stacker.news",
// we want to load images from everywhere but we can limit to HTTPS at least
"img-src 'self' a.stacker.news m.stacker.news https: data: blob:" + devSrc,
"media-src 'self' a.stacker.news m.stacker.news" + devSrc,
"media-src 'self' a.stacker.news m.stacker.news https:" + devSrc,
// Using nonces and strict-dynamic deploys a strict CSP.
// see https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html#strict-policy.
// Old browsers will ignore nonce and strict-dynamic and fallback to host-based matching and unsafe-inline