Add withCredentials flag to XHR

This commit is contained in:
Will Abson 2016-08-25 18:21:59 -04:00
parent 9c50c94453
commit 0647551f8a

View File

@ -79,6 +79,8 @@ export class UploadWidget extends WidgetComponent implements OnInit {
let xhr: XMLHttpRequest = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.onreadystatechange = () => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {