fix authentication incompatible with firefox