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
63
votes
3 answers

CORS with jQuery and XDomainRequest in IE8/9

UPDATE: I highly recommend not investing any time in XDomainRequest, because it is a terribly poor implementation with many limitations. It basically only really works for GET requests to non-ssl servers, so you might as well use jsonp or…
Jeroen
  • 28,942
  • 33
  • 116
  • 190
32
votes
2 answers

Access is denied error on XDomainRequest

I'm trying to use microsoft XDomainRequest to send cross domain request. Here is the code ... if ($.browser.msie && window.XDomainRequest) { // Use Microsoft XDR var xdr = new XDomainRequest(); xdr.open("POST",…
18
votes
2 answers

cross-origin header in IE8/IE9

Since jQuery ajax ist not working for CORS/IE, I'm using XDomainRequest to retreive data from another Server. Work's fine, but I would like to send some header ('Authentification', 'content-type'). Is there a chance to add/change header in…
Johannes Staehlin
  • 3,550
  • 7
  • 32
  • 50
18
votes
1 answer

Setting headers in XDomainRequest or ActiveXObject('Microsoft.XMLHTTP')

I'm trying to do something like this (W3 compliant, DOM): xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest' ); For ActiveXObject('Microsoft.XMLHTTP') and XDomainRequest (IE8). I'm having no such luck finding it anywhere in microsoft…
16
votes
1 answer

Can XDomainRequest be made to work with SSL?

I have code that uses Microsoft's XDomainRequest object in IE8. The code looks like this: var url = "http:///api/acquire?"; var xdr = new XDomainRequest(); xdr.onload = function(){ …
13
votes
2 answers

Make a CORS request in IE9 with cookies?

In IE9, I am attempting to make a cross origin request with cookies. However, even when I have the Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Access-Control-Allow-Methods all set to the appropriate values (the origin domain,…
Jeff
  • 2,698
  • 6
  • 20
  • 27
12
votes
2 answers

Is there a XDomainRequest equivalent in Firefox?

Is there an equivalent to Internet Explorer's XDomainRequest in Firefox or any of the other browsers? I'd like to access a service/website outside of my domain.
leeand00
  • 23,306
  • 34
  • 125
  • 265
11
votes
2 answers

IE, XDomainRequest not always work

I am trying to do cross-domain on IE. I used XDomainRequest, and implanted logging for all events (onerror, onload, onprogress and ontimeout) to monitor the progress. It works sometime, but not always (one computer, IE9, same site, same request, 1…
10
votes
2 answers

XDomainRequest in IE is giving Access is Denied error

This is the code I am using is as follows down below: I am using IE9 and am unable to see the request being sent in the Network tab. I do have Access-Control headers set in the JSP as: <% response.setHeader("Access-Control-Allow-Origin",…
akoy
  • 173
  • 3
  • 9
8
votes
4 answers

XDomainRequest problem

I'm trying to make a asynchronous call to a service that returns json using XDomainRequest (IE8). The problem is that i always get an error (the onerror event is fired, and the responseText is always null), i'm using fiddler to check the response of…
GiaNU
  • 375
  • 2
  • 4
  • 10
8
votes
3 answers

Why IE XDomainRequest does not send Referer header

When I am doing CORS in IE via XDomainRequest object, the Referer HTTP header is not being sent. Is there any official documentatation covering this? I fully understand, that relying on Referer HTTP header is basicaly wrong idea, however without…
7
votes
2 answers

XDomainRequest Vs XMLHttpRequest on IE8 and IE9

I am very confused with the XMLHttpRequest and the XDomainRequest reincarnation and would like some help. So here are my findings: The XDomainRequest in IE8 and IE9 seems to be some kind of XMLHttpRequest sub class(?) The XDomainRequest lacks the…
5
votes
1 answer

Can I read binary data properly through XDomainRequest?

Edit: Taking dennmat's suggestion into consideration, I have managed to simplify my image acquiring script down to a few lines using Image(): window.onload = function(){ var img; capture_canvas = document.createElement('canvas'); …
Axle
  • 266
  • 1
  • 16
5
votes
1 answer

IE8/9 AJAX/CORS (XDomainRequest) send referer header

I'm using XDomainRequest in IE8 & 9 to send requests to a server. With XMLHttpRequests in other browsers, both an Origin and Referer header are sent, and could look like this: Origin: http://www.example.com Referer:…
Dave
  • 36,791
  • 8
  • 53
  • 96
5
votes
1 answer

XDomainRequest aborts POST on IE 9

I am doing a cross domain Ajax call. My Code: if (window.XDomainRequest) // Check whether the browser supports XDR. { xdr = new XDomainRequest(); // Create a new XDR object. if (xdr) { xdr.timeout = 3000;//Set the timeout time to 3…
user1926138
  • 1,238
  • 7
  • 25
  • 50
1
2 3
8 9