This commit is contained in:
Iron_Felix 2025-12-20 02:33:00 +03:00
parent 4c8ed09429
commit 8f23d959e3

View file

@ -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) {