Permalink
Browse files

HTML5: Cross-site HTTP requests with credentials: https://developer.m…

  • Loading branch information...
1 parent 664f892 commit 8a52ef2d4442ee9a24787e4717961f76c6b40903 Max committed Apr 18, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/javascript/plupload.html5.js
@@ -643,6 +643,10 @@
boundary = '----pluploadboundary' + plupload.guid(), formData, dashdash = '--', crlf = '\r\n', multipartBlob = '';
xhr = new XMLHttpRequest;
+ if (xhr.withCredentials !== undefined) {
+ // https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS#Requests_with_credentials
+ xhr.withCredentials = true;
+ }
// Do we have upload progress support
if (xhr.upload) {

1 comment on commit 8a52ef2

Hi,
you need to add the "withCredentials" flag after xhr.open("post", url, true); (line 729 in your changed file). Otherwise it will throw InvalidStateError in IE10 (and safari mobile 5)

Please sign in to comment.