SurfSense/surfsense_desktop/src
CREDO23 d5284b3076 fix(desktop): bind bundled Next.js on localhost to keep window origin stable
Setting HOSTNAME=0.0.0.0 made Next.js standalone canonicalize request.url to
http://0.0.0.0:PORT. The connector OAuth callback's NextResponse.redirect built
its Location from that URL, so navigating it flipped window.location.origin from
http://localhost:PORT to http://0.0.0.0:PORT. The backend CORS allowlist matches
localhost/127.0.0.1 only, blocking every subsequent API call until app restart —
producing the "no internet" / app-down state after connecting any connector.
2026-05-22 19:37:19 +02:00
..
ipc Merge upstream/dev 2026-04-27 22:44:40 +02:00
modules fix(desktop): bind bundled Next.js on localhost to keep window origin stable 2026-05-22 19:37:19 +02:00
main.ts Wire General Assist and screen capture through Electron IPC 2026-04-24 19:14:37 +02:00
preload.ts Merge upstream/dev 2026-04-27 22:44:40 +02:00