state-hub/workplans/ADHOC-2026-06-04.md

33 lines
929 B
Markdown
Raw Normal View History

---
id: STATE-WP-ADHOC-2026-06-04
type: workplan
title: "Ad hoc fixes - 2026-06-04"
domain: custodian
repo: state-hub
status: finished
owner: codex
topic_slug: custodian
created: "2026-06-04"
updated: "2026-06-04"
---
# Ad hoc fixes - 2026-06-04
## Fix Dashboard Overview API Loading
```task
id: STATE-WP-ADHOC-2026-06-04-T01
status: done
priority: high
```
The overview page reported `Dashboard data load failed: NetworkError when
attempting to fetch resource.` even when the API was healthy from Windows.
The root cause was brittle browser/API connection setup: the dashboard assumed
`http://127.0.0.1:8000`, while the API CORS defaults allowed only the exact
dashboard origins on port 3000.
Result: the dashboard now resolves its API base from the current browser host
with explicit query/storage/global overrides, and the API allows common local
Observable dashboard origins on ports 3000-3005, including IPv6 loopback.