Fixing to work either on the internal network or using the new cookie set by starphleet for ldap and basic auth fronted apps