diff --git a/web/src/api.ts b/web/src/api.ts index 5c5a4cb..db77552 100644 --- a/web/src/api.ts +++ b/web/src/api.ts @@ -13,7 +13,10 @@ export function POST(path: string, body: FormData | string | null) { const sessionStore = useSessionStore(); return fetch(BASE_URL + path, { method: "POST", - headers: sessionStore.AuthHeaders, + headers: { + ...sessionStore.AuthHeaders, + "Content-Type": "application/json" + }, body: body, }); }