full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Fix parse_cors function to be consistent for both empty string and empty list

Open rolkotaki opened this issue 4 months ago • 1 comments

Fix the parse_cors function in config.py so that it behaves consistently for both empty string and empty list. Currently, when an empty list is provided as an argument, it returns an empty list ([]). However, when an empty string ("") is provided, it returns a list with an empty string ([""]) and starting the FastAPI application fails.

rolkotaki avatar Jun 15 '25 14:06 rolkotaki