Whenever the browser makes a preflight request (HTTP OPTIONS call) in certain cases and If the response of the preflight request fails the protocol checks ( no response / response not as expected ), the actual request ( GET / POST ) is not made and the XHR errors out with status code 0 in such cases.
Those cases return status code as 0. Is there any way to identify preflight request failure scenarios or any API to capture the preflight request failure (as there can be other reasons for getting the status code as 0) ?
Main motive is to differentiate other errors with the preflight failures.