Reactive-Extensions / RxJS-DOM

HTML DOM Bindings for the Reactive Extensions for JavaScript
http://reactivex.io
Other
438 stars 101 forks source link

Xdr blob: added option `withCredentials` for CORS requests. added mention of 'blob' contentType to documentation. #109

Closed iambumblehead closed 8 years ago

iambumblehead commented 8 years ago

Xdr blob: added option withCredentials for CORS requests. added mention of 'blob' contentType to documentation.

With this change, this request succeeds

rx.DOM.ajax({
  url          : 'http://d8d913s460fub.cloudfront.net/videoserver/cat-test-video-320x240.mp4',
  crossDomain  : true,
  responseType : 'blob'
}).subscribe(
  function (data) {
    console.log('next ', data);
  },
  function (error) {
    // Log the error
  },
  function (complete) {
    console.log('complete');
  }
);