From c7e2e881e194a63fff589b492fff09b407f1e7d8 Mon Sep 17 00:00:00 2001 From: BVier <26220150+BVier@users.noreply.github.com> Date: Mon, 6 May 2019 13:21:02 +0200 Subject: [PATCH] TSK-847: Add Authentication to Import-Export-Module --- .../components/import-export/import-export.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/app/administration/components/import-export/import-export.component.ts b/web/src/app/administration/components/import-export/import-export.component.ts index 42235b1e7..59efbbc4c 100644 --- a/web/src/app/administration/components/import-export/import-export.component.ts +++ b/web/src/app/administration/components/import-export/import-export.component.ts @@ -65,6 +65,9 @@ export class ImportExportComponent implements OnInit { } else { ajax.open('POST', environment.taskanaRestUrl + '/v1/classification-definitions'); } + if (!environment.production) { + ajax.setRequestHeader('Authorization', 'Basic YWRtaW46YWRtaW4='); + } ajax.send(formdata); this.uploadservice.isInUse = true; this.uploadservice.setCurrentProgressValue(1)