Fix most glaring bugs and vulnerabilities

This commit is contained in:
Luka Romih
2023-05-08 23:25:25 +02:00
parent 9867875ef2
commit d0e53fee3b
144 changed files with 2231 additions and 2981 deletions
+7
View File
@@ -2,6 +2,13 @@ const { getInstanceSetting } = require('../models/helpers')
exports.enhanceLocals = async (req, res, next) => {
res.locals.portalCode = await getInstanceSetting('portal_code')
res.locals.flashInfo = req.flash('info')
next()
}
exports.adjustHeaders = async (req, res, next) => {
res.set('Cache-Control', 'no-cache, private')
next()
}