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:
parent
9986d3b411
commit
d95e5c2dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue