fix: 🐛 enforce global cookies path
This commit is contained in:
parent
8dc12c4e0d
commit
c38ae17881
|
@ -39,6 +39,7 @@ export async function handler(request: Request, ctx: FreshContext) {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: 'Strict',
|
sameSite: 'Strict',
|
||||||
secure: true,
|
secure: true,
|
||||||
|
path: '/',
|
||||||
expires: SessionStore.maxAge,
|
expires: SessionStore.maxAge,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -52,6 +53,7 @@ export async function handler(request: Request, ctx: FreshContext) {
|
||||||
httpOnly: false,
|
httpOnly: false,
|
||||||
sameSite: 'Strict',
|
sameSite: 'Strict',
|
||||||
secure: true,
|
secure: true,
|
||||||
|
path: '/',
|
||||||
expires: SessionStore.maxAge,
|
expires: SessionStore.maxAge,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue