From 2a7df22bd93f1e48acdab2defc1b62c6fdad4dc7 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 19 Apr 2026 15:22:36 +0200 Subject: [PATCH] feat(products): add debug logging for auth headers in POST request --- frontend/app/api/products/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app/api/products/route.ts b/frontend/app/api/products/route.ts index b37b01b0..c0ca7724 100644 --- a/frontend/app/api/products/route.ts +++ b/frontend/app/api/products/route.ts @@ -18,6 +18,9 @@ export async function GET(req: NextRequest) { export async function POST(req: NextRequest) { const body = await req.json(); const authHeaders = await getAuthHeaders(); + // Debug: log auth headers + // eslint-disable-next-line no-console + console.log('API /api/products POST: authHeaders =', authHeaders); const res = await fetch(`${API_BASE}/api/products`, { method: 'POST', headers: { 'Content-Type': 'application/json', ...authHeaders },