fix
This commit is contained in:
parent
4c8ed09429
commit
8f23d959e3
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ export const SettingsPage: React.FC = () => {
|
|||
const res = await postMediaUpload({
|
||||
body: formData,
|
||||
// Сбрасываем заголовок, чтобы браузер сам поставил multipart/form-data + boundary
|
||||
headers: { "Content-Type": undefined as any },
|
||||
headers: { "Content-Type": undefined as any, "X-XSRF-TOKEN": xsrfToken },
|
||||
});
|
||||
|
||||
if (res.data && res.data.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue