When we are testing our client application with selenium on IE11, selenium clicks a button in order to perform login,the click triggers JQuery Post request and sometimes having immediate response with status = 0 and statusText:null. When this problem happens, the request does not sent to the server. The request is quite trivial:
$.ajax({
type: "POST",
url: url + "api/Login",
headers: { "Authorization": "Basic " + enc },
xhrFields: {
withCredentials: true
},
crossDomain: true,
dataType: "json",
contentType: "application/json",
data: JSON.stringify({ ApplicationType: config.applicationTypeLogin })
})
I can see that when this happens for the very same request, the IIS server never receives the request and the HTTP status is never set and has a value of zero. That means the request blocked within the browser, there is no real response from the server because the request is never made.
Does anyone have ideas on how to troubleshoot this issue?