Files
stack/apps
Jason Woltje ac2a92d371
All checks were successful
ci/woodpecker/push/api Pipeline was successful
fix(api): use getTrustedOrigins() for WebSocket CORS instead of WEB_URL
The WebSocket gateway was hardcoded to `process.env.WEB_URL ?? "http://localhost:3000"`
for CORS origin, while the main API uses getTrustedOrigins() which reads TRUSTED_ORIGINS.
In production, WEB_URL was not set, causing CORS to reject connections from
mosaic.woltje.com with "Access-Control-Allow-Origin: http://localhost:3000".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 06:04:40 -06:00
..