mirror of
https://github.com/dani-garcia/bitwarden_rs
synced 2024-11-11 13:11:04 +01:00
Update web.rs
Add frame-ancestors to allow U2F to work in Chrome (and possibly Firefox) extension
This commit is contained in:
parent
a335bcd682
commit
037eb0b790
@ -56,6 +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://*");
|
||||||
|
res.set_raw_header("Content-Security-Policy", "frame-ancestors moz-extension://*");
|
||||||
|
|
||||||
Ok(res)
|
Ok(res)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user