fix: update session cookie domain for production environment
This commit is contained in:
parent
981c2f79f5
commit
5cab57ecc3
@ -63,7 +63,7 @@ app.use(session({
|
||||
maxAge: 24 * 60 * 60 * 1000, // 24 hours
|
||||
httpOnly: true,
|
||||
sameSite: process.env.NODE_ENV === 'production' ? 'lax' : 'lax',
|
||||
domain: process.env.NODE_ENV === 'production' ? 'ethanf.gg' : undefined // Remove the dot prefix
|
||||
domain: process.env.NODE_ENV === 'production' ? 's22.ethanf.gg' : undefined
|
||||
},
|
||||
name: 's22poll.sid'
|
||||
}));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user