Support mocking of XDomainRequest #196

Closed
enemaerke opened this Issue Nov 1, 2012 · 0 comments

2 participants

@enemaerke

When performing cross origin requests (CORS) in IE8 and IE9 you need to use the special XDomainRequest instead of the standard XHR. It would be great if XDomainRequest was supported as a mockable object in sinon, similar to XHR, so testing of AJAX calls can be performed in all browsers.

FYI, the XDomainRequest is flawed with limitations (see http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx) but for IE8 and IE9 it is the only option. Also the API is somewhat different to the XHR (see http://msdn.microsoft.com/en-us/library/ie/cc288060(v=vs.85).aspx)

@cjohansen cjohansen closed this Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment