Merge pull request #624 from Alfresco/dev-wabson-623

Add withCredentials flag to upload file XHR request
This commit is contained in:
Denys Vuika
2016-08-25 23:53:11 +01:00
committed by GitHub
@@ -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) {