fix: resolve CORS blocking Vite dev server (add 5173 to defaults, add proxy)

This commit is contained in:
2026-04-09 19:10:10 -04:00
parent 34a57d6f09
commit 3362325479
3 changed files with 10 additions and 2 deletions

View File

@@ -57,5 +57,5 @@ DECNET_DEVELOPER: bool = os.environ.get("DECNET_DEVELOPER", "False").lower() ==
# CORS — comma-separated list of allowed origins for the web dashboard API.
# Example: DECNET_CORS_ORIGINS=http://localhost:8080,https://dashboard.example.com
_cors_raw: str = os.environ.get("DECNET_CORS_ORIGINS", "http://localhost:8080")
_cors_raw: str = os.environ.get("DECNET_CORS_ORIGINS", "http://localhost:8080,http://localhost:5173")
DECNET_CORS_ORIGINS: list[str] = [o.strip() for o in _cors_raw.split(",") if o.strip()]