Unspecified error with XDomainRequest in IE9
-
9. července 2012 10:58
Hi,
this simple request doesn't work in IE9 (9.0.8112.16421) :
var xdr=new XDomainRequest();
xdr.open('GET','http://mydomain.tld/myscript.php');
xdr.send();
The send method returns an "unspecified error".
I tried all possible combinations :
- within/without debugging console
- setting all event handlers (onerror, ontimeout, onload, onprogress)
- making myscript.php sending a "XDomainRequestAllowed: *" and even a "XDomainRequestAllowed: 1" even though everything is taking place on the same domain...
- querying a POST instead of a GET
- trying on 3 different servers (local and remote)
- disabling all IE add-ons
- setting IE security level to low-level
... Nothing helps.
While the same test with a XMLHttpRequest is working fine.
var xhr=new XMLHttpRequest();
xhr.open('GET','http://mydomain.tld/myscript.php',false/true);
xhr.send();
This bug is quite annoying since it prevents many ajax-based websites from performing correctly...
Všechny reakce
-
11. července 2012 6:58Moderátor
Hi,
As the issue may be related to development, it is recommended to post the issue in Internet Explorer Development forum to see if guys there can help you.
Thanks for your understanding and hope the issue will be resolved soon!
Regards.
Jeremy Wu
TechNet Community Support
- Navržen jako odpověď Vincenzo Di RussoMVP 11. července 2012 12:16
- Označen jako odpověď Nicholas LiMicrosoft Contingent Staff, Moderator 18. července 2012 9:45