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 },