IE10/11 Ajax XHR error - SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3

前端 未结 10 1478
走了就别回头了
走了就别回头了 2020-11-30 03:56

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 an

10条回答
  •  没有蜡笔的小新
    2020-11-30 04:31

    I had faced the same issue. For me the issue seemed to be occurring only in IE11 over a Post call, I have been using AngularJS provider $http to make the call. It seems that this is a bug in IE, and it is a certificate issue. The security certificate information is not loaded properly when the POST call is made. As a workaround, before making the POST call, make a GET call to load the certificate properly. Take a look at the example code below (it's using AngularJS)

    $http({
        method: "GET",
        url: "/api/DummyGet"
    }).success(
    $http({
            method: "POST",
            url: "/api/PostCall",
            data: data
    })
    );
    

    For further information you can take a look at these two links -http://jonnyreeves.co.uk/2013/making-xhr-request-to-https-domains-with-winjs/
    -IE10/IE11 Abort Post Ajax Request After Clearing Cache with error "Network Error 0x2ef3"

提交回复
热议问题