MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / parse_cors

Function parse_cors

backend/src/core/config.py:17–22  ·  view source on GitHub ↗
(v: Any)

Source from the content-addressed store, hash-verified

15
16
17def parse_cors(v: Any) -> list[str] | str:
18 if isinstance(v, str) and not v.startswith("["):
19 return [i.strip() for i in v.split(",")]
20 elif isinstance(v, list | str):
21 return v
22 raise ValueError(v)
23
24
25class Settings(BaseSettings):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected