Add CSRF Header in File Upload and Profile Image Set Operations (#2686)
This commit is contained in:
parent
2ea1f928d3
commit
dd5d11e1dd
2 changed files with 2 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue