diff --git a/web/src/lib/api/client.ts b/web/src/lib/api/client.ts index b362d0efa..aab22ee55 100644 --- a/web/src/lib/api/client.ts +++ b/web/src/lib/api/client.ts @@ -45,6 +45,7 @@ export default class ApiClient { headers: { ...(method !== 'GET' && this.csrf ? { 'X-CSRF-TOKEN': this.csrf } : {}), ...(this.token ? { Authorization: `Bearer ${this.token}` } : {}), + ...(data ? { 'Content-Type': 'application/json' } : {}), }, body: data ? JSON.stringify(data) : undefined, });