Send Content-Type on POST
This commit is contained in:
parent
1da86e30c3
commit
4ee82dce26
@ -13,7 +13,10 @@ export function POST(path: string, body: FormData | string | null) {
|
|||||||
const sessionStore = useSessionStore();
|
const sessionStore = useSessionStore();
|
||||||
return fetch(BASE_URL + path, {
|
return fetch(BASE_URL + path, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: sessionStore.AuthHeaders,
|
headers: {
|
||||||
|
...sessionStore.AuthHeaders,
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
},
|
||||||
body: body,
|
body: body,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user