diff --git a/frontend/app/api/payments/wallets/route.ts b/frontend/app/api/payments/wallets/route.ts index 0e379843..8348abc4 100644 --- a/frontend/app/api/payments/wallets/route.ts +++ b/frontend/app/api/payments/wallets/route.ts @@ -56,12 +56,10 @@ export async function DELETE(req: NextRequest) { try { const auth = await buildBackendRequestHeaders(req); const proxiedHeaders = new Headers(auth.headers); + proxiedHeaders.set("Content-Type", "application/json"); const res = await fetch(`${API_BASE}/api/payments/wallets`, { method: "DELETE", - headers: { - ...proxiedHeaders, - "Content-Type": "application/json", - }, + headers: proxiedHeaders, body: JSON.stringify(payload), cache: "no-store", });