KamoCRM

Revert email WebSocket URL to same-origin Next.js rewrite path

Fixkamo-internal
Shipped
March 17, 2026 at 11:09 PM UTC
Author
kamo
Commit
9dc94a4

Use /email-ws on same origin, proxied by Next.js rewrites to EmailService via k8s internal DNS. SockJS HTTP fallbacks (xhr-streaming, xhr-polling) work through rewrites — the middleware fix resolved the actual breakage.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing