Skip to content

Commit

Permalink
fix(cors): Add PUT + DELETE in cors policy
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-ride committed Oct 26, 2024
1 parent 26c19c6 commit abe80ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub async fn app(arguments: Arguments) -> axum::Router {
];

let cors_layer = tower_http::cors::CorsLayer::new()
.allow_methods([Method::GET, Method::POST])
.allow_methods([Method::GET, Method::POST, Method::PUT, Method::DELETE])
.allow_headers([
axum::http::header::AUTHORIZATION,
axum::http::header::ACCEPT,
Expand Down

0 comments on commit abe80ee

Please sign in to comment.