Browse Source

Changed frame-ancestors to use 'self'

pull/293/head
dheimerl 6 years ago
committed by GitHub
parent
commit
9a7d3634d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/api/web.rs

2
src/api/web.rs

@ -56,7 +56,7 @@ 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");
let csp = "frame-ancestors chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://* ".to_owned() + &CONFIG.domain + ";";
let csp = "frame-ancestors 'self' chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://*;";
res.set_raw_header("Content-Security-Policy", csp);
Ok(res)

Loading…
Cancel
Save