Repository navigation
Commit 8ca9a6c
committed
fix(app): use window.location.origin for API URL fallback
When accessing the web UI via non-localhost addresses (e.g., Tailscale IP,
LAN IP), the frontend was hardcoded to use http://localhost:4096 as the
API URL, causing all API requests to fail.
This changes the fallback to use window.location.origin, which dynamically
uses the actual server address from which the page was loaded.
Fixes anomalyco#5844
Fixes anomalyco#60631 parent f057b22 commit 8ca9a6c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments