vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit d8116a80dffba464951fd7f9466e6d8f9dcd59c5
parent e0aec8d373447b17c5db60b146cd9400ffcd6097
Author: TBK <858296+TBK@users.noreply.github.com>
Date:   Thu, 17 Jan 2019 17:14:14 +0100

Add Feature-Policy header
Diffstat:
Msrc/util.rs | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/util.rs b/src/util.rs @@ -15,6 +15,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://twofactorauth.org; usb 'none'; vr 'none'"); 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");