From 77992a5d383e630b06dc63317586333cc7c6520c Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Sat, 20 Sep 2025 19:06:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20`parse=5Fcors`=20function?= =?UTF-8?q?=20to=20be=20consistent=20for=20both=20empty=20string=20and=20e?= =?UTF-8?q?mpty=20list=20(#1672)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/core/config.py b/backend/app/core/config.py index c78e173..6a8ca50 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -17,7 +17,7 @@ from typing_extensions import Self def parse_cors(v: Any) -> list[str] | str: if isinstance(v, str) and not v.startswith("["): - return [i.strip() for i in v.split(",")] + return [i.strip() for i in v.split(",") if i.strip()] elif isinstance(v, list | str): return v raise ValueError(v)