Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security improvement: don't reveal powered-by #2813

Closed
wants to merge 1 commit into from
Closed

Security improvement: don't reveal powered-by #2813

wants to merge 1 commit into from

Commits on Nov 23, 2015

  1. Security improvement: don't reveal powered-by

    The first thing recommended when setting up an Express instance is to
    secure it by removing its "X-Powered-By" header.
    
    https://www.npmjs.com/package/helmet
    https://blog.risingstack.com/node-js-security-checklist/
    https://strongloop.com/strongblog/best-practices-for-express-in-production-part-one-security/
    
    So let's save cycles by not setting this header in the first place.
    
    This header is also totally useless. If some people are needing it
    somewhere for a very specific usecase they can add a little custom
    middleware that returns the "X-Powered-By" header again.
    madarche committed Nov 23, 2015
    Configuration menu
    Copy the full SHA
    b30bbb3 View commit details
    Browse the repository at this point in the history