diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-01-05 04:16:42 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-05 05:34:45 -0500 |
| commit | fe063f50fec346b57453f541308ad5ffa7454398 (patch) | |
| tree | 21589782d7d2b1c08133ebc485fb506e1bc8f71d /nginx/snippets/security-headers.conf | |
| parent | f9328e24c1b4adf2d6e5f36a471fd504fa8dd8f7 (diff) | |
add foundation for WebUSB-based install page
Diffstat (limited to 'nginx/snippets/security-headers.conf')
| -rw-r--r-- | nginx/snippets/security-headers.conf | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/nginx/snippets/security-headers.conf b/nginx/snippets/security-headers.conf index fc9fbb47..5ead941c 100644 --- a/nginx/snippets/security-headers.conf +++ b/nginx/snippets/security-headers.conf @@ -1,17 +1,6 @@ -add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always; -add_header X-Content-Type-Options "nosniff" always; -add_header Referrer-Policy "no-referrer" always; -add_header Expect-CT "enforce, max-age=63072000" always; -add_header Cross-Origin-Opener-Policy "same-origin" always; -add_header Cross-Origin-Embedder-Policy "require-corp" always; -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'; require-trusted-types-for 'script'" always; +include snippets/security-headers-base.conf; + 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=(), usb=(), xr-spatial-tracking=()" always; # Feature-Policy is being replaced by Permissions-Policy add_header Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; battery 'none'; camera 'none'; display-capture 'none'; document-domain 'none'; encrypted-media 'none'; fullscreen 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture 'none'; publickey-credentials-get 'none'; screen-wake-lock 'none'; sync-xhr 'none'; usb 'none'; xr-spatial-tracking 'none'" always; - -# obsolete and replaced with Content-Security-Policy frame-ancestors 'none' -add_header X-Frame-Options "DENY" always; - -# obsolete and replaced with strong Content-Security-Policy -add_header X-XSS-Protection "1; mode=block" always; |
