summaryrefslogtreecommitdiff
path: root/nginx/snippets/security-headers.conf
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-01-26 10:55:12 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-01-26 10:58:00 -0500
commit57f77c96cb5be65e3c30b581be7f2e6295c273ad (patch)
tree06706b028a5dbb7eac306f6198736297792aed33 /nginx/snippets/security-headers.conf
parent04f98cb812e9950b738007ffae6f013bf24908d5 (diff)
drop support for obsolete Feature-Policy header
This has been replaced by Permissions-Policy.
Diffstat (limited to 'nginx/snippets/security-headers.conf')
-rw-r--r--nginx/snippets/security-headers.conf3
1 files changed, 0 insertions, 3 deletions
diff --git a/nginx/snippets/security-headers.conf b/nginx/snippets/security-headers.conf
index af0800f0..6204991b 100644
--- a/nginx/snippets/security-headers.conf
+++ b/nginx/snippets/security-headers.conf
@@ -3,6 +3,3 @@ 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'; require-trusted-types-for 'script'" 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=(), 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;