I have the following setting installed on my server:
- Apache HTTP Server Serves External BackboneJS Application
- Apache Tomcat serves a Java-based backend (CORS enabled).
Everything works on one server, on which I have full control.
I am currently using com.thetransactioncompany.cors.CORSFilterin a Java based database to enable CORS. Everything to work fine.
My interface has the following code to redirect the user to the login page if an unregistered REST call has occurred:
$.ajaxSetup({
statusCode: {
401: function(){
window.location.replace('/#login');
},
403: function() {
window.location.replace('/#denied');
}
},
cache: false
});
Everything works fine in all major browsers except IE10.
IE10, , , REST, HTTP 401 ( ). XHR, IE hoewever, , status = 0. ( , status = 401.
, IE10, IE10 HTTP 401 . :
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied
apache vhosts, URL- /.
http:
http:
/ Apache
, CORS? ?