title: Microsoft Edge: SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd
body: <p>Running on Windows 10, Microsoft Edge.  I have an app installed locally on my machine in IIS (10.119.103.10) which is trying to make requests to another machine on the network (10.119.103.2) which is setup to use CORS.</p>
  
  <p>This all works in chrome and internet explorer ... here is a test case</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>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();
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="xhrtest('http://10.119.103.2/~adf/RMC2/trunk/server/?r=get')"&gt;XHR TEST&lt;/button&gt;
  &lt;hr/&gt;
  &lt;div id="output"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In Microsoft Edge however, I get the following error</p>
  
  <blockquote>
    <p>SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete
    the operation due to error 00002efd.</p>
  </blockquote>
  
  <p>The client (XMLHttpRequest) isn't even attempting to connect to the server, it bails immediately.  The test case producing this output:-</p>
  
  <pre><code>OPEN http://10.119.103.2/~adf/RMC2/trunk/server/?r=get 
  SEND 
  READY 4 STATUS 0  TYPE
  </code></pre>
  
  <p>I suspect this is something to do with private networks though really I have no idea, nor any idea how to resolve it.</p>