allow HEAD HTTP requests in CORS
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
20aa2cfca6
commit
85b2c6681b
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ async fn run_server() -> io::Result<()> {
|
|||
.allow_origin(cors::Any)
|
||||
.allow_methods([
|
||||
Method::GET,
|
||||
Method::HEAD,
|
||||
Method::POST,
|
||||
Method::PUT,
|
||||
Method::DELETE,
|
||||
|
|
Loading…
Add table
Reference in a new issue