fix(api): use getTrustedOrigins() for WebSocket CORS #549
Reference in New Issue
Block a user
Delete Branch "fix/websocket-cors-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?
WebSocket gateway CORS was hardcoded to localhost:3000 via WEB_URL fallback. Production doesn't set WEB_URL, causing CORS rejections for mosaic.woltje.com. Now uses getTrustedOrigins() matching the main API CORS config.