From 59d13e423ed401abbadbe833fdae241f2b55508d Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Tue, 31 Mar 2026 13:05:34 -0700 Subject: [PATCH] fix(api): set JSON Content-Type on onboarding-seed POST /workspaces/onboarding-seed now sends application/json so servers that require it parse the body correctly. Made-with: Cursor --- web/src/lib/notes-client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/lib/notes-client.ts b/web/src/lib/notes-client.ts index ea8be32..e0f3dff 100644 --- a/web/src/lib/notes-client.ts +++ b/web/src/lib/notes-client.ts @@ -231,7 +231,11 @@ export async function listNoteVersions( export async function seedOnboardingWorkspace(): Promise<{ workspaceId: string; noteIds: string[] }> { const api = createNotesApiClient(); - return api.fetch("/workspaces/onboarding-seed", { method: "POST", body: JSON.stringify({}) }); + return api.fetch("/workspaces/onboarding-seed", { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({}), + }); } export async function chatOverWorkspace(workspaceId: string, message: string): Promise<{