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 <noreply@anthropic.com>
This commit is contained in:
kianiadee 2026-06-06 10:07:46 +03:00
parent 9986d3b411
commit d95e5c2dbd

View file

@ -54,7 +54,7 @@ _ALLOWED_ORIGINS = [
o.strip() o.strip()
for o in os.getenv( for o in os.getenv(
"DASHBOARD_CORS_ORIGINS", "DASHBOARD_CORS_ORIGINS",
"https://liveposition.rahamafresh.com,https://fleetintelligence.rahamafresh.com", "https://liveposition.rahamafresh.com,https://fleetintelligence.rahamafresh.com,https://fleetnow.rahamafresh.com",
).split(",") ).split(",")
if o.strip() if o.strip()
] ]