aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2022-01-23 23:44:08 +0100
committerDaniel García <[email protected]>2022-01-23 23:44:08 +0100
commit4a88e7ec78f178561b7236d8e83de2b4afa3ed21 (patch)
tree359ebcdd61b941d2bb8405fc37954fbe05a2587c
parent65dad5a9d1ba7e5295b970d44bcfbfa228adb040 (diff)
parente4e16ed50f7e51a42cb1d6811be3f93ee04d3e45 (diff)
downloadvaultwarden-4a88e7ec78f178561b7236d8e83de2b4afa3ed21.tar.gz
vaultwarden-4a88e7ec78f178561b7236d8e83de2b4afa3ed21.zip
Merge branch 'iamdoubz-feature-to-permissions-policy-patch' of https://github.com/iamdoubz/vaultwarden into iamdoubz-iamdoubz-feature-to-permissions-policy-patch
-rw-r--r--src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index 1a5e674b..4defc63f 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -27,7 +27,7 @@ impl Fairing for AppHeaders {
}
fn on_response(&self, _req: &Request, res: &mut Response) {
- res.set_raw_header("Feature-Policy", "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; camera 'none'; encrypted-media 'none'; fullscreen 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture 'none'; sync-xhr 'self' https://haveibeenpwned.com https://2fa.directory; usb 'none'; vr 'none'");
+ res.set_raw_header("Permissions-Policy", "accelerometer=(), ambient-light-sensor=(), autoplay=(), camera=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), sync-xhr=(self \"https://haveibeenpwned.com\" \"https://2fa.directory\"), usb=(), vr=()");
res.set_raw_header("Referrer-Policy", "same-origin");
res.set_raw_header("X-Frame-Options", "SAMEORIGIN");
res.set_raw_header("X-Content-Type-Options", "nosniff");