set dispatchOptionsRequest to true