Remove X-Powered-By header

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-09-10 21:41:50 +01:00
parent 3798f2c980
commit eb1245c42a
1 changed files with 3 additions and 0 deletions

3
app.js
View File

@ -54,6 +54,9 @@ log.out(
"init"
);
// Remove X-Powered-By header:
app.disable('x-powered-by');
// Express Error Handling:
app.use((err, req, res, next) => {
const statusCode = err.statuscode || 500;