Mastodon nginx: add commented out CSP

merge-requests/1355/head
Alex Gleason 2022-05-11 18:27:11 -05:00
rodzic d49e8c61a1
commit f08da5f8f0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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 / {