Disabled the x-served-by and x-powered-by Headers
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
ref #41
This commit is contained in:
parent
1bf6d3d564
commit
19422edbae
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue