diff --git a/services/web/frontend/js/features/editor-left-menu/utils/api.ts b/services/web/frontend/js/features/editor-left-menu/utils/api.ts index 512d5fab31..b51fe3d3f3 100644 --- a/services/web/frontend/js/features/editor-left-menu/utils/api.ts +++ b/services/web/frontend/js/features/editor-left-menu/utils/api.ts @@ -38,10 +38,7 @@ type SaveUserSettings = Partial< export function saveUserSettings(data: SaveUserSettings) { postJSON('/user/settings', { - body: { - _csrf: window.csrfToken, - ...data, - }, + body: data, }) } @@ -54,9 +51,6 @@ export const saveProjectSettings = async ({ ...data }: SaveProjectSettings) => { await postJSON(`/project/${projectId}/settings`, { - body: { - _csrf: window.csrfToken, - ...data, - }, + body: data, }) }