Skip to content

Commit

Permalink
Allow CORS for POST requests as well (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Feb 7, 2025
1 parent a67a6ef commit 7543ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl Server {
))
.layer(
CorsLayer::new()
.allow_methods([http::Method::GET])
.allow_methods([http::Method::GET, http::Method::POST])
.allow_origin(Any),
)
.layer(CompressionLayer::new())
Expand Down

0 comments on commit 7543ddd

Please sign in to comment.