Skip to content

Commit

Permalink
Allow more CORS methods
Browse files Browse the repository at this point in the history
  • Loading branch information
isiko committed Jul 25, 2024
1 parent b947473 commit e556f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit e556f8d

Please sign in to comment.