fix: add delete to backend cors

This commit is contained in:
EETagent 2022-12-05 23:26:29 +01:00
parent 0b36b96802
commit 3f22192835

View file

@ -39,7 +39,7 @@ impl Fairing for CORS {
));
response.set_header(Header::new(
"Access-Control-Allow-Methods",
"POST, GET, OPTIONS",
"POST, GET, OPTIONS, DELETE",
));
response.set_header(Header::new("Access-Control-Allow-Headers", "content-type"));
response.set_header(Header::new("Access-Control-Allow-Credentials", "true"));