fix(api): use TRUSTED_ORIGINS for socket.io gateway CORS #628

Merged
jason.woltje merged 1 commits from fix/gateway-cors-trusted-origins into main 2026-03-01 20:13:14 +00:00
Owner

Terminal and speech WebSocket gateways were using WEB_URL env var (unset in prod) for socket.io CORS, defaulting to http://localhost:3000. All connections from https://mosaic.woltje.com were blocked. Fixed to use TRUSTED_ORIGINS (already set) with WEB_URL fallback. Also adds createTask API client function.

Terminal and speech WebSocket gateways were using WEB_URL env var (unset in prod) for socket.io CORS, defaulting to http://localhost:3000. All connections from https://mosaic.woltje.com were blocked. Fixed to use TRUSTED_ORIGINS (already set) with WEB_URL fallback. Also adds createTask API client function.
jason.woltje added 1 commit 2026-03-01 20:13:10 +00:00
fix(api): use TRUSTED_ORIGINS for socket.io gateway CORS; add createTask API client
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
f982fb5233
jason.woltje merged commit c23c33b0c5 into main 2026-03-01 20:13:14 +00:00
Sign in to join this conversation.