diff --git a/src/runtime/httpFactory.ts b/src/runtime/httpFactory.ts index e3a1510..37d08b9 100644 --- a/src/runtime/httpFactory.ts +++ b/src/runtime/httpFactory.ts @@ -73,6 +73,11 @@ export function createHttpClient(nuxtApp: NuxtApp, logger: ConsolaInstance): $Fe await interceptor(nuxtApp, context, logger) }) } + + logger.trace( + `Request headers for "${context.request.toString()}"`, + context.options.headers, + ) }, async onResponse(context: FetchContext): Promise { @@ -81,6 +86,11 @@ export function createHttpClient(nuxtApp: NuxtApp, logger: ConsolaInstance): $Fe await interceptor(nuxtApp, context, logger) }) } + + logger.trace( + `Response headers for "${context.request.toString()}"`, + context.response?.headers, + ) }, async onResponseError({ response }): Promise {