I am experiencing the exact same issue. But in my case, the custom realm is being used by OpenShift and GitLab. Openshift works perfectly. GitLab works great in Safari, occasionally works in Chrome, does not work at all in Firefox.