This commit is contained in:
xbdm
2023-08-02 14:57:49 -04:00
committed by GitHub
parent 1a46323406
commit f4c92df4ff
+1 -1
View File
@@ -78,7 +78,7 @@ if(config.redirect_http_to_https) {
app.use(compression())
app.use(cookieParser())
app.use(bodyParser.urlencoded({ extended: true, limit: '10mb' }))
app.use(session({ secret: process.env['SECRET'], cookie: secure; httpOnly { maxAge: 60000 } }))
app.use(session({ secret: process.env['SECRET'], cookie: 'secure httponly', maxAge: '60000' }))
app.use(csrf())
app.use(express.static(path.join(__dirname, '../static')))
app.use(express.static(path.join(__dirname, '../media')))