From 874ec9e914ab1de07d290caccc908429f6a9e417 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 29 Aug 2026 14:04:19 -0400 Subject: [PATCH] CORS patch fix (#262) Reviewed-on: http://git.kundeng.us/phoenix/soaricarus_api/pulls/262 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/config/init.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1f3cf01..1aed57a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3013,7 +3013,7 @@ dependencies = [ [[package]] name = "soaricarus_api" -version = "0.5.7" +version = "0.5.8" dependencies = [ "axum", "axum-extra", diff --git a/Cargo.toml b/Cargo.toml index 3e9a883..80fd923 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "soaricarus_api" -version = "0.5.7" +version = "0.5.8" edition = "2024" rust-version = "1.95" license = "MIT" diff --git a/src/config/init.rs b/src/config/init.rs index 862a669..62e71f7 100644 --- a/src/config/init.rs +++ b/src/config/init.rs @@ -25,6 +25,7 @@ mod cors { let cors = tower_http::cors::CorsLayer::new() .allow_methods([ axum::http::Method::GET, + axum::http::Method::PATCH, axum::http::Method::POST, axum::http::Method::PUT, axum::http::Method::DELETE,