Send Content-Type on POST

This commit is contained in:
Jan Bader 2022-08-21 19:32:20 +00:00
parent d258ab63e4
commit 71be1ac49f

View File

@ -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,
});
}