Include credentials for session cookie in xhr
This commit is contained in:
parent
eb1eb38c01
commit
3a60bef2b6
@ -167,6 +167,7 @@ function DragDropUploadFile(file) {
|
||||
//
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.withCredentials = true;
|
||||
(xhr.upload || xhr).addEventListener('progress', function(e) {
|
||||
var done = e.position || e.loaded
|
||||
var total = e.totalSize || e.total;
|
||||
|
Reference in New Issue
Block a user