Microsoft Edge: SCRIPT7002: XMLHttpRequest: network error 0x2efd, operation could not be completed due to error 00002efd

Works in Windows 10, Microsoft Edge. I have an application installed locally on my computer in IIS (10.119.103.10), which is trying to execute requests to another computer on the network (10.119.103.2) that is configured to use CORS.

It all works in chrome and internet explorer ... here is a test case

function LOG(message) { var el = document.createElement('pre'); el.textContent = message; output.appendChild(el); } function xhrtest(url) { var XHR = new XMLHttpRequest(); LOG("OPEN " + url); XHR.open("GET", url, true); XHR.onreadystatechange = function(e) { LOG('READY ' + XHR.readyState + ' STATUS ' + XHR.status + ' ' + XHR.statusText + ' TYPE ' + XHR.responseType); LOG(XHR.response); } LOG("SEND"); XHR.send(); } 
 <button onclick="xhrtest('http://10.119.103.2/~adf/RMC2/trunk/server/?r=get')">XHR TEST</button> <hr/> <div id="output"></div> 

However, the following error appears in Microsoft Edge:

SCRIPT7002: XMLHttpRequest: network error 0x2efd, operation could not be completed due to error 00002efd.

The client (XMLHttpRequest) does not even try to connect to the server, it is immediately released. Test scenario producing this conclusion: -

 OPEN http://10.119.103.2/~adf/RMC2/trunk/server/?r=get SEND READY 4 STATUS 0 TYPE 

I suspect that this has something to do with private networks, although in fact I have no idea and don’t know how to resolve it.

+8
microsoft-edge cors
source share
3 answers

I have the same problem "SCRIPT7002: XMLHttpRequest: Network Error 0x2efd" when my webpage will try to connect to another web server via ajax. My page worked fine in all other browsers even in IE 11. I enable this by disabling the smart screen filter in the Edge browser. I think the smart screen filter blocks ajax's connection to websites that it considers suspicious or low. check this link for more information

+1
source

I see something similar .... I have a Windows application developed using Cordoba and the VS2015 toolkit. When I use our WIFI or mobile data connection, the AJAX request works fine. But when using a non-wifi company, for example, at home, I get the error message "XMLHttpRequest: network error 0x2ee2, the operation could not be completed due to error 00002ee2" with the answer "readyState": 0, "status": 0, "statusText ": mistake".

Can you try connecting via a 3G / 4G connection and see if this works.

0
source

Had the same problem and it turned out that the Wifi Make this PC discoverable property was disabled. The inclusion of this is fixed.

0
source

All Articles