This commit is contained in:
Alan Grainger
2025-02-03 09:36:52 +08:00
parent 6885eec193
commit 650427db28
4 changed files with 9 additions and 6 deletions
+2
View File
@@ -35,6 +35,8 @@ app.use(express.json())
app.use('/share/static', express.static('public', { setHeaders: addResponseHeaders }))
// Serve the same assets on /, to allow for /robots.txt and /favicon.ico
app.use(express.static('public', { setHeaders: addResponseHeaders }))
// Remove the X-Powered-By ExpressJS header
app.disable('x-powered-by')
/**
* Middleware to decode the encrypted data stored in the session cookie