Skip to content

Commit

Permalink
Merge branch 'feature/xhr-session-based-upload' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Dec 31, 2021
2 parents 11baa7f + 2aeaa3c commit 72a9230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/upload/Uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ export default class Uploader {
formData.append('title', this.file.name);

const parameters = typeof this.params === 'function' ? this.params() : this.params;
if (parameters.withCredentials) {
this.xhr.withCredentials = true;
}

// DEBUG:
console.log(`Fetching ${this.uploadUrl}`, parameters);
Expand Down

0 comments on commit 72a9230

Please sign in to comment.