Compare commits
2 commits
63b3435117
...
ac7be4f764
| Author | SHA1 | Date | |
|---|---|---|---|
| ac7be4f764 | |||
| 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