fix: update cors

This commit is contained in:
kieran 2024-11-29 17:34:17 +00:00
parent 3a5093d3c3
commit 3200f903c7
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -18,7 +18,7 @@ impl Fairing for CORS {
response.set_header(Header::new("Access-Control-Allow-Origin", "*"));
response.set_header(Header::new(
"Access-Control-Allow-Methods",
"PUT, GET, HEAD, DELETE, OPTIONS, POST",
"PUT, GET, HEAD, DELETE, OPTIONS, POST, PATCH",
));
response.set_header(Header::new("Access-Control-Allow-Headers", "*"));
response.set_header(Header::new("Access-Control-Allow-Credentials", "true"));