title: IE10/11 Ajax XHR error - SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3
body: <p>I've been working on this problem for a few days and reaching out on this forum since I feel like I've exhausted my options.  I have a form hosted on a Drupal 7 website and need to submit the form values to an external url.  The form uses a POST request over the HTTPS protocol via jQuery.AJAX</p>
  
  <ul>
  <li>Form works fine in Chrome, Firefox, and Safari</li>
  <li>I am receiving the following error in IE10+ console (and the ajax call always goes into the error function when using IE10+):</li>
  </ul>
  
  <blockquote>
    <p>SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3</p>
  </blockquote>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li><p>adding contentType:</p>
  
  <pre><code>// causes all of the jQuery callbacks to error out
  "application/json; charset=utf-8",
  </code></pre></li>
  <li><p>attempting an Ajax GET call before the actual POST (as suggested on another SO thread)</p></li>
  <li><p>added <code>header( 'Content-Type: application/json; charset=utf-8' );</code> to the request</p></li>
  <li><p>set <code>crossDomain: true</code></p></li>
  </ul>
  
  <p>The appropriate CORS headers have been added and the form code is pasted below:</p>
  
  <pre><code>$.ajax({
      url: "[URL]", //the page to receive the form data  
      crossDomain: true,
      type: "POST",
      data: dataString, //posting to API 
      dataType: "json", //the data type the function should expect back from the server     
      success: function(data) {         
          if (data.response_status == "1") { //error for at least 1 field
               //display error message 
               }
               else { 
               //display thank you label next to input
               }
  
          } else {
             //All form fields completed successfully! Redirect user to Thank you confirmation page            
          } 
       },
      error: function(jqXHR, textStatus, errorThrown) {
               alert("there is an error!");
               console.log("in error section");
               console.log("jqXHR: " + jqXHR);
               console.log("jqXHR.responseText: " + jqXHR.responseText);
               console.log("textStatus: " + textStatus);
               console.log("errorThrown: " + errorThrown);
               data = $.parseJSON(jqXHR.responseText);
               console.log("parseJSON data: " + data);                           
      }        
      });         
    });
  });
  </code></pre>
  
  <p>I've read 
  <a href="https://stackoverflow.com/questions/14527387/script7002-xmlhttprequest-network-error-0x2ef3-could-not-complete-the-operati">SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3</a></p>
  
  <p>Any guidance would be helpful! THANKS</p>