diff --git a/src/snyk/advisor/services/advisorApiClient.ts b/src/snyk/advisor/services/advisorApiClient.ts index 9e3e13236..9a068857d 100644 --- a/src/snyk/advisor/services/advisorApiClient.ts +++ b/src/snyk/advisor/services/advisorApiClient.ts @@ -47,11 +47,7 @@ export class AdvisorApiClient implements IAdvisorApiClient { const token = await this.configuration.getToken(); this.http.interceptors.request.use(req => { req.baseURL = this.configuration.baseApiUrl; - req.headers = { - ...req.headers, - Authorization: `token ${token}`, - } as { [header: string]: string }; - + req.headers['Authorization'] = `token ${token}`; return req; }); return this.http.post(url, data, config);