Disabled the x-served-by and x-powered-by Headers
continuous-integration/drone/pr Build is passing Details

ref #41
This commit is contained in:
Nicolai Ort 2020-12-21 17:48:04 +01:00
parent 1bf6d3d564
commit 19422edbae
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import { Application } from "express";
*/
export default async (app: Application) => {
app.enable('trust proxy');
app.disable('x-powered-by');
app.disable('x-served-by');
app.use(cookieParser());
return app;
};