diff --git a/backend/app/core/config.py b/backend/app/core/config.py index d58e03c87d..40fc1931cb 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -18,7 +18,7 @@ def parse_cors(v: Any) -> list[str] | str: if isinstance(v, str) and not v.startswith("["): - return [i.strip() for i in v.split(",")] + return [i.strip() for i in v.split(",") if i.strip()] elif isinstance(v, list | str): return v raise ValueError(v)