mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-29 17:39:22 +03:00
Fixed web.rs
This commit is contained in:
parent
037eb0b790
commit
7f7c936049
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue