Skip to content
Snippets Groups Projects
Unverified Commit 7f7c9360 authored by dheimerl's avatar dheimerl Committed by GitHub
Browse files

Fixed web.rs

parent 037eb0b7
No related branches found
No related tags found
No related merge requests found
......@@ -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-Content-Type-Options", "nosniff");
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://*");
let csp = "frame-ancestors chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://* ".to_owned() + &CONFIG.domain + ";";
res.set_raw_header("Content-Security-Policy", csp);
Ok(res)
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment