diff --git a/server/src/main.rs b/server/src/main.rs index b3d0788..d3dbde2 100755 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -42,9 +42,9 @@ async fn main() -> std::io::Result<()> { .allowed_methods(vec!["GET", "POST"]) .max_age(3600); - // In debug mode, allow localhost + // In debug mode, allow any origin #[cfg(debug_assertions)] - let cors = cors.allowed_origin("http://localhost:8080"); + let cors = cors.allow_any_origin(); App::new() .wrap(cors)