Skip to content

Commit

Permalink
feat: allow any method and origin
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlin1228 committed Oct 6, 2024
1 parent 2e52f8e commit a7f3dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/api_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async fn main() -> std::io::Result<()> {

HttpServer::new(move || {
App::new()
.wrap(Cors::default().allowed_origin("http://localhost:5173"))
.wrap(Cors::default().allow_any_method().allow_any_origin())
.app_data(web::Data::new(AppState {
project_root: portable.project_root.clone(),
translation_json: portable.translation_json.clone(),
Expand Down

0 comments on commit a7f3dfa

Please sign in to comment.