fix(api): use TRUSTED_ORIGINS for socket.io gateway CORS #628
Reference in New Issue
Block a user
Delete Branch "fix/gateway-cors-trusted-origins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.