allow HEAD HTTP requests in CORS

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-09 21:02:57 -05:00
parent 98f83d1d0c
commit 0a5095b575

View file

@ -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,