Add CSRF Header in File Upload and Profile Image Set Operations (#2686)

This commit is contained in:
Daniel Schalla 2019-04-04 16:43:54 +02:00 committed by Harrison Healey
parent 2ea1f928d3
commit dd5d11e1dd
2 changed files with 2 additions and 0 deletions

View file

@ -119,6 +119,7 @@ export default class FileUploadItem extends PureComponent {
Authorization: `Bearer ${Client4.getToken()}`,
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'multipart/form-data',
'X-CSRF-Token': Client4.csrf,
};
const fileInfo = {

View file

@ -226,6 +226,7 @@ export default class EditProfile extends PureComponent {
Authorization: `Bearer ${Client4.getToken()}`,
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'multipart/form-data',
'X-CSRF-Token': Client4.csrf,
};
const fileInfo = {