Mastodon nginx: add commented out CSP
This commit is contained in:
parent
d49e8c61a1
commit
f08da5f8f0
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ server {
|
|||
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
|
||||
# Content Security Policy (CSP)
|
||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
||||
# add_header Content-Security-Policy "base-uri 'none'; default-src 'none'; font-src 'self'; img-src 'self' https: data: blob:; style-src 'self' 'unsafe-inline'; media-src 'self' https: data:; frame-src 'self' https:; manifest-src 'self'; connect-src 'self' data: blob: wss://example.com; script-src 'self'; child-src 'self'; worker-src 'self';";
|
||||
|
||||
# Fallback route.
|
||||
# Try static files, then fall back to the SPA.
|
||||
location / {
|
||||
|
|
Loading…
Reference in a new issue