From 1b95659f144d54b2de131c609bd007d028f51e12 Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Sat, 21 Mar 2026 19:41:05 -0400 Subject: [PATCH] fix: add LAN origins (192.168.0.240) to default CORS allowlist (#71) --- lab_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab_api.py b/lab_api.py index 93d580f..6e27c1e 100644 --- a/lab_api.py +++ b/lab_api.py @@ -45,7 +45,7 @@ from routes.ml import router as ml_router log = logging.getLogger("commander_ai_lab.api") # ── CORS origins (env-configurable) ──────────────────────────── -_DEFAULT_ORIGINS = "http://localhost:5173,http://localhost:8080" +_DEFAULT_ORIGINS = "http://localhost:5173,http://localhost:8080,http://192.168.0.240:5173,http://192.168.0.240:8080" _allowed = os.environ.get("ALLOWED_ORIGINS", _DEFAULT_ORIGINS) allowed_origins = [o.strip() for o in _allowed.split(",") if o.strip()]