Questions tagged [xdomainrequest]

The XDomainRequest object is implemented in Internet Explorer 8–10 and can be used to do cross-domain asynchronous requests and it also has support for streaming the content.

The XDomainRequest object was implemented in IE8 and can be used to do cross-domain asynchronous requests. It also has support for streaming the content.

Eric Law has explained its use in an IEInternals blog post: COMET Streaming in Internet Explorer

122 questions
5
votes
1 answer

How can I set the content-type of XDomainRequest object?

for XMLHttpRequest it is pretty easy: var xhr = new XMLHttpRequest(); xhr.open('POST', MyUrl, true); xhr.setRequestHeader('Content-Type', 'application/json') But how do I achieve this for XDomainRequest?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
5
votes
1 answer

How can I make cross-domain requests with custom headers without using XDomainRequest or XMLHttpRequest?

I have a single page web application delivered from www.example.com. This web applications needs to make AJAX requests against another server named api.example.com it has to set certain header fields like Authorization when sending requests to…
4
votes
2 answers

why ie8 CORS / XDomainRequest doesn't send cookie?

I've managed to make a CORS request on IE8 using XDomainRequest. However it seems the cookies are not sent on IE8. Is there any hack for that ? The request is made from buy.example.com to buy.api.example.com
themihai
  • 7,903
  • 11
  • 39
  • 61
4
votes
2 answers

Long Poll and IE's XDomainRequest Object

I'm trying to implement a chat app that uses long polling to get messages from a remote (cross domain) server. Is there any way to do this with a XDomainRequest? It seems my connections always get terminated after a random amount of…
I.Hamer
  • 41
  • 2
4
votes
1 answer

Cross origin request blocked

I want to retrieve json data from an other website so I tried to do a simple crossdomain request. I ran this index.php file on Wamp :
dekajoo
  • 2,024
  • 1
  • 25
  • 36
4
votes
2 answers

I have implemented xdomain scripts on both client and server end, but in IE9 keep getting a 'Timeout waiting on iframe socket' warning

On the client, I have: Then on the server, I have a proxy.html with: