SCRIPT7002: XMLHttpRequest: Network Error 0x2f76, Could not complete the operation due to error 00002f76

假装没事ソ 提交于 2019-12-10 10:44:48

问题


When my app`s session variable expires and if we try to perform any DB operation via AJAX call, I keep receiving this error only on IE (works fine on FF and chrome).

SCRIPT7002: XMLHttpRequest: Network Error 0x2f76, Could not complete the operation due to error 00002f76

Due to this my app is not redirecting. what can be the possible reasons?

TIA


回答1:


For this the redirection status code

303 See Other HTTP status code

is not recognize in IE, Changed to the status code to 308 and worked perfectly.




回答2:


I've got same error from IE in case of adding incorrect header to ajax request. It was such code:

    $.ajax({
        url: someUrl,
        type: "GET",
        cache: false,
        headers: "Cache-Control:no-cache"
    });

Problem was solved by changing code:

    $.ajax({
        url: someUrl,
        type: "GET",
        cache: false,
        headers: {
           'Cache-Control': 'no-cache'
        }
    });


来源:https://stackoverflow.com/questions/31847078/script7002-xmlhttprequest-network-error-0x2f76-could-not-complete-the-operati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!