fix: enforce secure cookie setting for session management
Build And Push Image / docker (push) Successful in 2m47s
Details
Build And Push Image / docker (push) Successful in 2m47s
Details
This commit is contained in:
parent
98ef466022
commit
eef81d7409
|
|
@ -321,7 +321,7 @@ export default defineEventHandler(async (event) => {
|
||||||
// Use Nuxt's setCookie helper directly with the encrypted value
|
// Use Nuxt's setCookie helper directly with the encrypted value
|
||||||
setCookie(event, 'monacousa-session', encrypted, {
|
setCookie(event, 'monacousa-session', encrypted, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: process.env.NODE_ENV === 'production',
|
secure: true,
|
||||||
sameSite: 'lax',
|
sameSite: 'lax',
|
||||||
maxAge,
|
maxAge,
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue