1
0
Fork 0
Dieser Commit ist enthalten in:
dheimerl 2018-12-17 22:59:53 -06:00 committet von GitHub
Ursprung 037eb0b790
Commit 7f7c936049
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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)
}, },