问题
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