Skip to content

Commit 9376a2c

Browse files
authored
fix bearer token possibly appearing more than once in auth header (#36)
Signed-off-by: Sebastian Kaupe <kaupe@gonicus.de>
1 parent 160a94a commit 9376a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/management-view/management-view.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class ManagementViewComponent implements OnInit{
112112
this.userData = this.security.userData;
113113
const token = await firstValueFrom(this.security.getAccessToken());
114114
this.incidentService.configuration.withCredentials = true;
115-
this.incidentService.defaultHeaders = this.incidentService.defaultHeaders.append("Authorization", `Bearer ${token}`);
115+
this.incidentService.defaultHeaders = this.incidentService.defaultHeaders.set("Authorization", `Bearer ${token}`);
116116
});
117117
}
118118

0 commit comments

Comments
 (0)