Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8a52ef2d4442ee9a24787e4717961f76c6b40903 1 parent 664f892
Max authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/javascript/plupload.html5.js
View
4 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

@kbaldyga

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.
Something went wrong with that request. Please try again.