removed unnecessary headers

This commit is contained in:
uh wot 2021-10-10 15:12:27 +02:00
parent 640a720810
commit ba3faf06cf
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 0 additions and 2 deletions

View File

@ -99,9 +99,7 @@ impl Fairing for CORS {
async fn on_response<'r>(&self, _request: &'r Request<'_>, response: &mut Response<'r>) {
response.set_header(Header::new("Access-Control-Allow-Origin", "*"));
response.set_header(Header::new("Access-Control-Allow-Methods", "POST, GET, OPTIONS"));
response.set_header(Header::new("Access-Control-Allow-Headers", "*"));
response.set_header(Header::new("Access-Control-Allow-Credentials", "true"));
}
}