Skip to content

Commit

Permalink
fix: add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
MICHEL NOGALES authored and MICHEL NOGALES committed Sep 8, 2023
1 parent af46a42 commit 6e3414f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/UploadFile/FileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ const httpTransfer = axios.create({
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
// @ts-ignore
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
});
httpTransfer.defaults.headers.post['Content-Type'] = 'application/json';
httpTransfer.defaults.headers.common = headersDefaultTransfer();
Expand Down

0 comments on commit 6e3414f

Please sign in to comment.