Skip to content

Commit

Permalink
Add All The Cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
idan committed Aug 26, 2024
1 parent 3f95f4a commit d734e7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ export const handle: Handle = async ({ event, resolve }) => {
httpOnly: false,
domain: event.url.hostname,
});

event.setHeaders({'X-All-The-Cookies': JSON.stringify(event.cookies.getAll())});
return await resolve(event);
};

0 comments on commit d734e7e

Please sign in to comment.