With a workmate, we are deploying a web project to a customer, we are encountering troubles to run it.
Our web application consumes REST Api web service and it runs on Internet Explorer 11, not on google chrome (version 62.0.3202.94), this error message is displayed : Response with status: 0 for URL: null
I also installed the allow control allow origin application, even if I disable and enable it, I continue to have the same error message, any idea?
In case the solution is here, I put the code contained in the main.js file to generate the http header :
AppService.prototype.getHeaderWS = function () {
var myHeaders = new __WEBPACK_IMPORTED_MODULE_1__angular_http__["a" /* Headers */]();
myHeaders.append('Accept', 'application/json');
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Access-Control-Allow-Origin', '*');
myHeaders.append('Access-Control-Allow-Methods', 'POST, GET, OPTIONS');
myHeaders.append('Authorization','Bearer CE8F9C763E919C7600000000F700FC0580F6142EE61E72B3867DAFEC900AE7C0A54746A9C2E1BF35BF50798B21997EF89');
return myHeaders;
};
I get this error message on google chrome : Response with status: 0 for URL: null
The web application works on Internet Explorer 11, and as I said, it’s the content of the main.js file, from the www/build folder, and according to me, the error comes from the http header