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 e4387f4 commit 7cc1082Copy full SHA for 7cc1082
backend/app/core/config.py
@@ -18,6 +18,8 @@
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(",")]
24
elif isinstance(v, list | str):
25
return v
0 commit comments