Ben Borgers

⇢ Twitter

How to disable the "x-powered-by" header in Express

Express generates a header to your responses that says x-powered-by: Express.

If you want to clean up your headers, just add:

app.disable("x-powered-by")

at the top of your javascript file.

--

Last updated January 24, 2021