KamoCRM

Refuse when session orgID does not match host org

Fixkamo-login
Shipped
29 ஏப்ரல், 2026 அன்று 10:20 PM UTC
Author
Kamo
Commit
6b4a436

auto-login accepted any *** and minted an OTK pointing back at it, regardless of which org the destination internal.* host belongs to. A stale or cross-org *** cookie surfaced at login.<host> would have been propagated into that host's internal subdomain, producing the "my session is for the wrong org" symptom. Resolve the current host's apex domain to its org via /api/security/org/domain and require the session's orgID to match before issuing the OTK. Fail-open on resolver errors to preserve current behavior when SecurityService is unreachable.

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