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 committed by June
parent 20aa2cfca6
commit 85b2c6681b

View file

@ -211,6 +211,7 @@ async fn run_server() -> io::Result<()> {
.allow_origin(cors::Any) .allow_origin(cors::Any)
.allow_methods([ .allow_methods([
Method::GET, Method::GET,
Method::HEAD,
Method::POST, Method::POST,
Method::PUT, Method::PUT,
Method::DELETE, Method::DELETE,