Fix e621 images and the setup screen in the desktop shell

e621's CDN answers cross-site image loads that carry no Referer with a 403
(Chromium sends none from a custom-scheme page, then blocks the response as
ORB), so images never appeared in the desktop app. The main process now
attaches an e621 referrer to requests for its hosts.

The shell also answers /api, /admin, /static and /health with a 404 JSON
instead of the SPA fallback — that fallback made the setup screen's empty-URL
connection test report "Connected" against the shell itself. The setup screen
is now desktop-aware (no same-origin option, no "Use this server", clearer
copy), and the smoke test runs against a throwaway profile and covers both
regressions.
This commit is contained in:
2026-09-20 21:08:56 -05:00
parent bd2417aff8
commit c992a63b8f
3 changed files with 101 additions and 10 deletions
+5
View File
@@ -20,6 +20,11 @@ src/preload.ts window.j621Desktop bridge
electron-builder.yml deb + pacman + nsis packaging
```
The main process attaches a `Referer` to requests for e621 hosts: Chromium
sends no referrer from a custom-scheme page, and e621's CDN answers
cross-site image loads without one with a 403 (which Chromium then blocks as
ORB). API calls work either way.
## Development
```bash