allow video in CSP
This commit is contained in:
parent
07b98c3253
commit
5a00f7b825
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue