We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 026db21 + 468e909 commit 1fa01fdCopy full SHA for 1fa01fd
lib/adapters/xhr.js
@@ -24,9 +24,9 @@ module.exports = function xhrAdapter(config) {
24
// For IE 8/9 CORS support
25
// Only supports POST and GET calls and doesn't returns the response headers.
26
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
27
- if (!window.XMLHttpRequest &&
28
- process.env.NODE_ENV !== 'test' &&
+ if (process.env.NODE_ENV !== 'test' &&
29
typeof window !== 'undefined' &&
+ !window.XMLHttpRequest &&
30
window.XDomainRequest && !('withCredentials' in request) &&
31
!isURLSameOrigin(config.url)) {
32
request = new window.XDomainRequest();
0 commit comments