Skip to content

feat: add backend host setting and CORS#40

Merged
paolino merged 3 commits into
mainfrom
feat/host-setting-cors
Jul 4, 2026
Merged

feat: add backend host setting and CORS#40
paolino merged 3 commits into
mainfrom
feat/host-setting-cors

Conversation

@paolino

@paolino paolino commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add backend CORS support for HTTP responses and OPTIONS preflight while preserving websocket upgrades.
  • Add a persisted frontend backend host/URL setting that derives ws/wss URLs, reconnects on change, and keeps same-origin behavior when empty.
  • Add focused backend/frontend tests plus render smoke coverage for the new setting.

Closes #39.

Verification

  • ./gate.sh
  • live riptide serve with headless UI check: Settings -> backend host set to the running server, websocket reconnected, engine returned connected
  • curl -i -X OPTIONS -H 'Origin: http://foreign.example' -H 'Access-Control-Request-Method: GET' http://127.0.0.1:<port>/ returned 204 with CORS allow headers

@paolino paolino marked this pull request as ready for review July 4, 2026 15:02
@paolino paolino merged commit afaceb0 into main Jul 4, 2026
4 checks passed
@paolino paolino deleted the feat/host-setting-cors branch July 4, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: backend-host setting in UI + CORS (connect UI to a remote backend)

1 participant