fix: 🐛 enforce global cookies path

This commit is contained in:
Julien Oculi 2024-06-13 14:38:27 +02:00
parent 8dc12c4e0d
commit c38ae17881

View file

@ -39,6 +39,7 @@ export async function handler(request: Request, ctx: FreshContext) {
httpOnly: true,
sameSite: 'Strict',
secure: true,
path: '/',
expires: SessionStore.maxAge,
})
@ -52,6 +53,7 @@ export async function handler(request: Request, ctx: FreshContext) {
httpOnly: false,
sameSite: 'Strict',
secure: true,
path: '/',
expires: SessionStore.maxAge,
})
}