Skip to content

Commit

Permalink
temporarily allow PUT requests thru CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
m1guelpf committed Sep 19, 2023
1 parent acd2c0d commit 34e13d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const RES_PREFIX: &str = "res:";
pub fn handler() -> Router {
let cors = CorsLayer::new()
.allow_origin(Any)
.allow_methods([Method::GET])
.allow_headers(AllowHeaders::any());
.allow_headers(AllowHeaders::any())
.allow_methods([Method::GET, Method::PUT]); //TODO: PUT is required by the simulator but should not be included

Router::new().route(
"/response/:request_id",
Expand Down

0 comments on commit 34e13d3

Please sign in to comment.