Fix single-sign-on when the endpoints are routed to synapse workers.