We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead5fa8 commit e90d3a2Copy full SHA for e90d3a2
backend/app/core/config.py
@@ -18,9 +18,7 @@
18
19
def parse_cors(v: Any) -> list[str] | str:
20
if isinstance(v, str) and not v.startswith("["):
21
- if not v.strip():
22
- return []
23
- return [i.strip() for i in v.split(",")]
+ return [i.strip() for i in v.split(",") if i.strip()]
24
elif isinstance(v, list | str):
25
return v
26
raise ValueError(v)
0 commit comments