geforkt von mirrored/vaultwarden
Fixed web.rs
Dieser Commit ist enthalten in:
Ursprung
037eb0b790
Commit
7f7c936049
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -56,8 +56,8 @@ impl<'r, R: Responder<'r>> Responder<'r> for WebHeaders<R> {
|
||||||
res.set_raw_header("X-Frame-Options", "SAMEORIGIN");
|
res.set_raw_header("X-Frame-Options", "SAMEORIGIN");
|
||||||
res.set_raw_header("X-Content-Type-Options", "nosniff");
|
res.set_raw_header("X-Content-Type-Options", "nosniff");
|
||||||
res.set_raw_header("X-XSS-Protection", "1; mode=block");
|
res.set_raw_header("X-XSS-Protection", "1; mode=block");
|
||||||
res.set_raw_header("Content-Security-Policy", "frame-ancestors chrome-extension://*");
|
let csp = "frame-ancestors chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://* ".to_owned() + &CONFIG.domain + ";";
|
||||||
res.set_raw_header("Content-Security-Policy", "frame-ancestors moz-extension://*");
|
res.set_raw_header("Content-Security-Policy", csp);
|
||||||
|
|
||||||
Ok(res)
|
Ok(res)
|
||||||
},
|
},
|
||||||
|
|
Laden …
In neuem Issue referenzieren