From e556f8d72c5861d5036bfb10c459551d8989cff8 Mon Sep 17 00:00:00 2001 From: isiko Date: Thu, 25 Jul 2024 21:27:49 +0200 Subject: [PATCH] Allow more CORS methods --- api/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main.rs b/api/src/main.rs index 75bf6f2..64581b8 100644 --- a/api/src/main.rs +++ b/api/src/main.rs @@ -36,7 +36,7 @@ async fn main() { .init(); let cors = CorsLayer::new() - .allow_methods([Method::GET, Method::POST]) + .allow_methods([Method::GET, Method::POST, Method::DELETE, Method::PUT]) .allow_origin(Any) .allow_headers([CONTENT_TYPE]);