From d95e5c2dbdc38c1ba9d24a41b327b41c93457aa5 Mon Sep 17 00:00:00 2001 From: kianiadee Date: Sat, 6 Jun 2026 10:07:46 +0300 Subject: [PATCH] config(cors): allow fleetnow.rahamafresh.com origin on dashboard_api The merged FleetNow dashboard (separate repo, Coolify) reads this read-API, so its origin must be in DASHBOARD_CORS_ORIGINS. Added to the code default; live config is set via the env in ~/deploy_dashboard_api.sh on the host. Co-Authored-By: Claude Opus 4.8 --- dashboard_api_rev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard_api_rev.py b/dashboard_api_rev.py index 98530e1..5cf0539 100644 --- a/dashboard_api_rev.py +++ b/dashboard_api_rev.py @@ -54,7 +54,7 @@ _ALLOWED_ORIGINS = [ o.strip() for o in os.getenv( "DASHBOARD_CORS_ORIGINS", - "https://liveposition.rahamafresh.com,https://fleetintelligence.rahamafresh.com", + "https://liveposition.rahamafresh.com,https://fleetintelligence.rahamafresh.com,https://fleetnow.rahamafresh.com", ).split(",") if o.strip() ]