CORS error
core/config for cors:
# CORS settings
@property
def cors_origins(self) -> list[str]:
"""Get CORS origins from environment or use defaults."""
cors_str = os.getenv("BACKEND_CORS_ORIGINS")
if cors_str:
return [origin.strip() for origin in cors_str.split(",")]
return ["*"]
Error in coolify while deploying:
pydantic_settings.exceptions.SettingsError: error parsing value for field "BACKEND_CORS_ORIGINS" from source "EnvSettingsSource"
BACKEND_CORS_ORIGIN in environment variables is defined as https://vrukbbkyvg,https://jkbryfbrhfbryb
Edited by Surya Manoj Pentakota