xdissent / karma-ievms

Karma launcher for ievms virtual machines
http://xdissent.github.io/karma-ievms
MIT License
58 stars 15 forks source link

[IE10] XMLHttpRequest: Network Error #2

Open petrbela opened 11 years ago

petrbela commented 11 years ago

When IE10 is launched on Win7, some XHR requests fail. In my test case, I send GET, POST and DELETE cross-domain requests. GET and POST work every time, but DELETE fails on

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.

The funny part comes now: When I open the VM and launch IE manually, and then start karma, all the test cases pass. Then, when I close IE and rerun the tests, the Network Error comes back. Also, when I test the whole site in that IE session, it fails on localStorage access (probably the same issue as xdissent/iectrl#2). And again, if I stop karma, open IE manually in the VM, and then launch the tests (and the site), everything works perfectly.

This is kind of a mysterious issue, but is consistent and I suspect some IE launcher settings may be tweaked to resolve it.

ghost commented 11 years ago

Hi All, I am also getting the same error when I am calling HTTPS service URL(WCF service) in html script. Service type is rest service and I had set upped required headers for service.
When Service and HTML hosted on same web server(IIS 7.5),calls are working fine. but when Service and HTML hosted on different web servers it is not able to get response from service. In IE it shows "XMLHttpRequest: Network Error 0x80070005, Access is denied." In Firefox shows "405 Method not allowed" In Chrome not showing any status.

Please help how to make it work. Thanks for your suggestions. --Avinash

benzen commented 10 years ago

in IE there is a config for prevent cors request to be done.

Maybe this can help

Benxamin commented 10 years ago

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied. This exact error is due to a response status code of 0 (zero).

This is when the request URI doesn't match the data or format (e.x.: query strings in a POST URL) and the browser recognizes that it should not be sent over the network. It will fail, and the response will be an Error object with two properties: { name: "Error", status: 0 }

http://stackoverflow.com/questions/16081267/xmlhttprequest-status-0-instead-of-401-in-ie-10

Legends commented 8 years ago

Same error with IE10 (CORS request using cutom header), without using Karma: Stackoverflow