fix: update session cookie domain for production environment

This commit is contained in:
ethanf 2025-08-14 15:37:33 -05:00
parent 981c2f79f5
commit 5cab57ecc3

View File

@ -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'
}));