TSK-847: Add Authentication to Import-Export-Module

This commit is contained in:
BVier 2019-05-06 13:21:02 +02:00 committed by Mustapha Zorgati
parent 8068d97577
commit c7e2e881e1
1 changed files with 3 additions and 0 deletions

View File

@ -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)