mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 22:11:14 +00:00
fix: add delete to backend cors
This commit is contained in:
parent
0b36b96802
commit
3f22192835
1 changed files with 1 additions and 1 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue