fix: 🐛 force global cookies path

This commit is contained in:
Julien Oculi 2024-06-13 17:20:15 +02:00
parent b032fe2161
commit eb13af1ac8

View file

@ -20,6 +20,7 @@ export async function handler(request: Request, ctx: FreshContext) {
setCookie(response.headers, { setCookie(response.headers, {
name: cookie, name: cookie,
value: '', value: '',
path: '/',
expires: 0, expires: 0,
}) })
} }
@ -29,6 +30,7 @@ export async function handler(request: Request, ctx: FreshContext) {
httpOnly: true, httpOnly: true,
sameSite: 'Strict', sameSite: 'Strict',
secure: true, secure: true,
path: '/',
expires: 1000 * 2 ** 38, // Never expire expires: 1000 * 2 ** 38, // Never expire
}) })
} }