From e37ff6061704d7998fb3df56dde502e5c8325337 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Tue, 23 Feb 2021 18:51:07 -0800 Subject: [PATCH] Change `twofactorauth.org` to `2fa.directory` The `twofactorauth.org` has apparently been sold to some company for marketing purposes. --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 4b7b8614..e025237c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -23,7 +23,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("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("Referrer-Policy", "same-origin"); res.set_raw_header("X-Frame-Options", "SAMEORIGIN"); res.set_raw_header("X-Content-Type-Options", "nosniff");