Skip to content

Commit

Permalink
Echo headers for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Sep 11, 2024
1 parent 74c9ba3 commit 1d13f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ 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(
'Access-Control-Allow-Headers',
`X-Requested-With, content-type, Authorization`,
)

console.log(response.headers)

return response
}) satisfies Handle

0 comments on commit 1d13f84

Please # to comment.