Skip to content

Commit

Permalink
Merge pull request #1239 from MetaPhase-Consulting/fix/windows-auth-e…
Browse files Browse the repository at this point in the history
…mp-profile

Use Windows auth for Employee Profile network request
  • Loading branch information
mjoyce91 committed Nov 9, 2020
2 parents cd63170 + 740486c commit 8ceef75
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class UserProfileGeneralInformation extends Component {
url$ = get(userProfile, 'employee_profile_url.external');
}
onToastInfo(id);
axios.get(url$, { headers: { JWTAuthorization: fetchJWT() }, responseType: 'arraybuffer' })
axios.get(url$, {
withCredentials: true,
headers: { JWTAuthorization: fetchJWT() },
responseType: 'arraybuffer' },
)
.then(response => {
onToastSuccess(id);
downloadPdfBlob(response.data);
Expand Down

0 comments on commit 8ceef75

Please sign in to comment.