Fixed InvalidStateError thrown by IE 11 when setting withCredentials on xhr BEFORE calling .open() method.