Skip to content

Commit

Permalink
Merge pull request #808 from hotosm/feat-updateSchemas
Browse files Browse the repository at this point in the history
fix: map_url and main_url in config file
  • Loading branch information
nrjadkry authored Sep 7, 2023
2 parents f097320 + 8e87e05 commit 6f88d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 6f88d57

Please sign in to comment.