Skip to content

changes on the index.js starting script #15

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

Closed
wants to merge 3 commits into from
Closed

changes on the index.js starting script #15

wants to merge 3 commits into from

Conversation

Jopchumba
Copy link
Contributor

The PR is a minor tweak on the response header X-POWERED by to a user set ie rainbows or any other string for security purposes.

Copy link
Owner

@makinhs makinhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Jopchumba , thanks for the pull-request and sorry for the late reply...

What about just hiding the X-Powered-By as helmet suggests?

If you are willing to add it:

http://expressjs.com/en/advanced/best-practice-security.html#use-helmet

https://www.npmjs.com/package/helmet

app.use(helmet.hidePoweredBy())

Helmet will provide the x-powered-by solution + a few other security wise solutions.

If you are keen to add it I will accept the pull request

Thanks in advance,

@TylerByte666
Copy link
Contributor

TylerByte666 commented Sep 15, 2021

X-Powered-by is a legacy thing, best to keep it out completely. This was stated in my CEH course.

@makinhs makinhs closed this Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants