From 90d94b6456f7f3652aed4aadcb1d7c60ba606b71 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Thu, 17 Aug 2023 20:22:50 +0300 Subject: [PATCH] added cors for ngaccount --- ngaccount/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ngaccount/src/main.rs b/ngaccount/src/main.rs index c7094f0..72579d4 100644 --- a/ngaccount/src/main.rs +++ b/ngaccount/src/main.rs @@ -263,7 +263,9 @@ async fn main() -> anyhow::Result<()> { #[cfg(not(debug_assertions))] { let origin = format!("https://{}", domain); + let origin2 = format!("https://account.{}", domain); cors = cors.allow_origin(origin.as_str()); + cors = cors.allow_origin(origin2.as_str()); log::info!("Starting server on http://localhost:3031"); warp::serve(api_v1.or(static_files).with(cors)) .run(([127, 0, 0, 1], 3031))