Update docs

This commit is contained in:
Alan Grainger
2026-10-07 18:04:57 +13:00
parent 7a9ff2e6ee
commit 172f247418
14 changed files with 243 additions and 37 deletions
+3 -1
View File
@@ -56,9 +56,11 @@ for (const dir of ['public', CORE_PUBLIC_DIR]) {
router.use('/share/static', express.static(dir))
}
// Everything past the static assets is never cached
// Everything past the static assets is never cached, and no page may be framed
router.use((_req, res, next) => {
addNoStoreHeaders(res)
res.set('X-Frame-Options', 'DENY')
res.set('Content-Security-Policy', "frame-ancestors 'none'")
next()
})
router.use(sessionMiddleware({ name: 'upload-session' }))