Skip to content

Commit

Permalink
Cors origin from env on config and defaults to allow all
Browse files Browse the repository at this point in the history
  • Loading branch information
prabinoid committed Feb 27, 2025
1 parent 406e450 commit a7e090a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Config:
APP_NAME: str = "Tasking Manager"
DEBUG: bool = False
PROFILING: bool = os.getenv("PROFILING", False)
EXTRA_CORS_ORIGINS: list = []
EXTRA_CORS_ORIGINS: list = os.getenv("EXTRA_CORS_ORIGINS", "").split(",") if os.getenv("EXTRA_CORS_ORIGINS") else ["*"]

# The base url the application is reachable
APP_BASE_URL: str = os.getenv("TM_APP_BASE_URL", "http://127.0.0.1:5000/").rstrip(
Expand Down

0 comments on commit a7e090a

Please sign in to comment.