From 0647551f8a60c9be79cad9e0264e87c078b6d05a Mon Sep 17 00:00:00 2001 From: Will Abson Date: Thu, 25 Aug 2016 18:21:59 -0400 Subject: [PATCH] Add withCredentials flag to XHR --- .../src/components/widgets/upload/upload.widget.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts index 37ec66ca23..2edf60dd6c 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts @@ -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) {