mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-02 12:57:49 +01:00
Change cookie session
This commit is contained in:
@@ -77,7 +77,7 @@ const sessionConfig: SessionConfig = {
|
|||||||
cookie: {
|
cookie: {
|
||||||
path: '/',
|
path: '/',
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: 'none',
|
sameSite: Env.get('NODE_ENV') === 'production' ? 'none' : false,
|
||||||
secure: Env.get('NODE_ENV') === 'production'
|
secure: Env.get('NODE_ENV') === 'production'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user