From 8e87e0568f80b930a62e07fd70bfefe4de79a9a1 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Thu, 7 Sep 2023 09:52:16 +0545 Subject: [PATCH] fix: map_url and main_url in config file --- src/backend/app/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/app/config.py b/src/backend/app/config.py index fb9b227a9f..5d59648f62 100644 --- a/src/backend/app/config.py +++ b/src/backend/app/config.py @@ -53,8 +53,8 @@ def assemble_cors_origins( # Build default origins from env vars url_scheme = info.data.get("URL_SCHEME") - main_url = info.data.get("URL_SCHEME") - map_url = info.data.get("URL_SCHEME") + main_url = info.data.get("FRONTEND_MAIN_URL") + map_url = info.data.get("FRONTEND_MAP_URL") if url_scheme and main_url and map_url: default_origins = [ f"{url_scheme}://{main_url}",