Disabled the x-served-by and x-powered-by Headers
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
ref #41
This commit is contained in:
parent
1bf6d3d564
commit
19422edbae
@ -6,6 +6,8 @@ import { Application } from "express";
|
|||||||
*/
|
*/
|
||||||
export default async (app: Application) => {
|
export default async (app: Application) => {
|
||||||
app.enable('trust proxy');
|
app.enable('trust proxy');
|
||||||
|
app.disable('x-powered-by');
|
||||||
|
app.disable('x-served-by');
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user