I have a certain xml answer in a server which I want to use as origin in an AJAX request from my page. The server is properly configured so that cross-domain requests work.
The problem is the content type - it's fixed to 'text/html'
, and I can't change that.
Most browsers seem happy to accept an XML response with that content type. So far my code works in any recent version of Firefox, Chrome and Safari.
Internet Explorer 8 is giving me trouble, though.
I've prepared a jsfiddle trying to simulate my issue:
On that jsfiddle, an AJAX request is made to the /echo/html
service (which returns 'text/html'
in the content type) but then it's used as an xml response. The "accepts"
parameter, even if set for this specific purpose, doesn't really affect anything - I can remove it and everything works on FF, Chr too.
But I can't make it work on IE8. Does anyone have any hints?
Thanks!