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

January 24, 2021

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

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


at the top of your javascript file.

A quick favor: was anything I wrote incorrect or misspelled, or do you still have questions? Please use this form to let me know or ask for help!