mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Disable x-powered-by header sent by express
This commit is contained in:
parent
0fee64ed88
commit
2349de6698
|
@ -39,6 +39,7 @@ export default class Server {
|
||||||
app.use(BodyParser.urlencoded({ extended: false }));
|
app.use(BodyParser.urlencoded({ extended: false }));
|
||||||
app.use(BodyParser.json());
|
app.use(BodyParser.json());
|
||||||
app.use(deps.session(expressSessionOptions));
|
app.use(deps.session(expressSessionOptions));
|
||||||
|
app.disable("x-powered-by");
|
||||||
|
|
||||||
app.set(TRUST_PROXY, 1);
|
app.set(TRUST_PROXY, 1);
|
||||||
app.set(VIEWS, viewsDirectory);
|
app.set(VIEWS, viewsDirectory);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user