From a3b9058e1024b186eb49fde18b2791d988b24627 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 21 Mar 2021 11:21:28 -0400 Subject: [PATCH] work around legacy CSP handling by AV/extensions --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index cc810403..fae1bb9f 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -252,7 +252,7 @@ http { location = /install/web { include snippets/security-headers-base.conf; - add_header Content-Security-Policy "default-src 'none'; connect-src 'self' https://releases.grapheneos.org/; font-src 'self'; img-src 'self'; manifest-src 'self'; script-src 'self'; style-src 'self'; form-action 'none'; frame-ancestors 'none'; block-all-mixed-content; base-uri 'none'" always; + add_header Content-Security-Policy "default-src 'none'; child-src 'self'; connect-src 'self' https://releases.grapheneos.org/; font-src 'self'; img-src 'self'; manifest-src 'self'; script-src 'self'; style-src 'self'; form-action 'none'; frame-ancestors 'none'; block-all-mixed-content; base-uri 'none'" always; add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), xr-spatial-tracking=()" always; add_header Cache-Control "public, max-age=1800"; include snippets/preload.conf;