various bugfixes

This commit is contained in:
2023-07-27 15:10:14 +02:00
parent 88f16c0421
commit b8b6467633
6 changed files with 14 additions and 7 deletions

View File

@@ -61,15 +61,15 @@ if ( settings.init ) {
console.log( '[ Server ] loading and initializing middlewares' );
// initialise express with middlewares
// TODO: Generate random token
// TODO: Generate random secret
app.use( expressSession( {
secret: 'gaoevgoawefgo083tq2rfvöfaf0p8',
resave: true,
resave: false,
saveUninitialized: true,
cookie: {
sameSite: 'none',
httpOnly: true,
secure: true,
httpOnly: false,
secure: false,
}
} ) );