Reputation: 94
I'm trying to execute a request using XDomainRequest on ie9, the problem I'm facing is when trying to get the response headers.
Does it support the getResponseHeader method or has a similar method in the object API?
Upvotes: 1
Views: 66
Reputation: 11335
I check the documentation and found that XDomainRequest does not have getResponseHeader method or a similar method.
In the documentation, I noticed that it is an obsolete and non-standard feature.
Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Reference: XDomainRequest
Internet Explorer 9 is also out of support scope of Microsoft.
It is recommended to move to the latest Microsoft browsers or at least move to the IE 11 browser. Then after you can try to use XMLHttpRequest
Upvotes: 1