Skip to content

Commit

Permalink
fix: add cors on delete (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
devceline authored Oct 13, 2023
1 parent cc7f3dc commit eb236e8
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 @@ -76,7 +76,7 @@ pub async fn bootstrap(
let cors_layer = CorsLayer::new()
.allow_headers([http::header::CONTENT_TYPE])
.allow_origin("*".parse::<HeaderValue>().unwrap())
.allow_methods([Method::GET, Method::POST]);
.allow_methods([Method::GET, Method::POST, Method::DELETE]);

let app = Router::new()
.route("/health", get(handlers::health::handler))
Expand Down

0 comments on commit eb236e8

Please sign in to comment.