Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

def parse_cors(v: Any) -> list[str] | str:
if isinstance(v, str) and not v.startswith("["):
if not v.strip():
return []
return [i.strip() for i in v.split(",")]
elif isinstance(v, list | str):
return v
Expand Down