diff --git a/modules/frontend/src/pages/SettingsPage/SettingsPage.tsx b/modules/frontend/src/pages/SettingsPage/SettingsPage.tsx index d3b6fc6..d7e1a32 100644 --- a/modules/frontend/src/pages/SettingsPage/SettingsPage.tsx +++ b/modules/frontend/src/pages/SettingsPage/SettingsPage.tsx @@ -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) {