Skip to content

Commit

Permalink
fixed CORS disallowing posting to our feedback endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jun 9, 2024
1 parent 7050cfa commit 8453961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async fn main() -> Result<(), BoxedError> {
let cors = Cors::default()
.allow_any_origin()
.allow_any_header()
.allowed_methods(vec!["GET"])
.allowed_methods(vec!["GET", "POST"])
.max_age(3600);

App::new()
Expand Down

0 comments on commit 8453961

Please sign in to comment.