Allow `data:` urls for `img-src` in CSP policies

This allows browser to display embedded images with `data:` urls.
pull/19723/head
QuantumGhost 11 months ago committed by GitHub
parent dc75a10989
commit 5818e8933a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,7 +37,7 @@ export function middleware(request: NextRequest) {
style-src 'self' 'unsafe-inline' ${scheme_source} ${whiteList};
worker-src 'self' ${scheme_source} ${csp} ${whiteList};
media-src 'self' ${scheme_source} ${csp} ${whiteList};
img-src *;
img-src http: https: data:;
font-src 'self';
object-src 'none';
base-uri 'self';

Loading…
Cancel
Save