Skip to content

Commit

Permalink
#86: proper use fo request config
Browse files Browse the repository at this point in the history
  • Loading branch information
EVOFORGE\dimay committed Dec 29, 2020
1 parent ffe82fa commit acc79c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skills-client-js/src/display/SkillsLevelJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ export default class SkillsLevelJS {
this._projectId = SkillsConfiguration.getProjectId();
log.debug(`SkillsClient::SkillsLevelJS::getting projectId from SkillsConfiguration: [${this._projectId}]`);
}
const requestConfig = { };
const requestConfig = { withCredentials: true };
if (!SkillsConfiguration.isPKIMode()) {
const authToken = SkillsConfiguration.getAuthToken();
requestConfig.withCredentials = true;
requestConfig.headers = { Authorization: `Bearer ${authToken}` };
}
axios.get(`${SkillsConfiguration.getServiceUrl()}/api/projects/${this._projectId}/level`, requestConfig)
Expand Down

0 comments on commit acc79c5

Please sign in to comment.