From 1d13f8431c6e172b0000e146cf3e5ac326ca6dc6 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Wed, 11 Sep 2024 23:47:58 +0300 Subject: [PATCH] Echo headers for debugging --- src/hooks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks.ts b/src/hooks.ts index 2326175..ad0489a 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -10,7 +10,6 @@ export const handle = (async ({ resolve, event }) => { const response = await resolve(event) - response.headers.delete('link') response.headers.append('Access-Control-Allow-Origin', `*`) response.headers.append('Access-Control-Allow-Methods', `GET`) response.headers.append( @@ -18,5 +17,7 @@ export const handle = (async ({ resolve, event }) => { `X-Requested-With, content-type, Authorization`, ) + console.log(response.headers) + return response }) satisfies Handle