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.
parse_cors
1 parent 984cc58 commit 77992a5Copy full SHA for 77992a5
backend/app/core/config.py
@@ -17,7 +17,7 @@
17
18
def parse_cors(v: Any) -> list[str] | str:
19
if isinstance(v, str) and not v.startswith("["):
20
- return [i.strip() for i in v.split(",")]
+ return [i.strip() for i in v.split(",") if i.strip()]
21
elif isinstance(v, list | str):
22
return v
23
raise ValueError(v)
0 commit comments