Support mocking of XDomainRequest #196

enemaerke opened this Issue Nov 1, 2012 · 0 comments

2 participants


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 but for IE8 and IE9 it is the only option. Also the API is somewhat different to the XHR (see

@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