Browse Source

Add Edge's frame-ancestors

Edge's frame-ancestors are required for Edge extension to do WebAuthn.
pull/1845/head
Kaito Udagawa 3 years ago
parent
commit
a622b4d2fb
  1. 2
      src/util.rs

2
src/util.rs

@ -29,7 +29,7 @@ impl Fairing for AppHeaders {
res.set_raw_header("X-Content-Type-Options", "nosniff");
res.set_raw_header("X-XSS-Protection", "1; mode=block");
let csp = format!(
"frame-ancestors 'self' chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://* {};",
"frame-ancestors 'self' chrome-extension://nngceckbapebfimnlniiiahkandclblb chrome-extension://jbkfoedolllekgbhcbcoahefnbanhhlh moz-extension://* {};",
CONFIG.allowed_iframe_ancestors()
);
res.set_raw_header("Content-Security-Policy", csp);

Loading…
Cancel
Save