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