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();
|
||||
return fetch(BASE_URL + path, {
|
||||
method: "POST",
|
||||
headers: sessionStore.AuthHeaders,
|
||||
headers: {
|
||||
...sessionStore.AuthHeaders,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: body,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user