fix: 🐛 force global cookies path
This commit is contained in:
parent
b032fe2161
commit
eb13af1ac8
|
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue