Fill in stub for infosec "helmet.hidePoweredBy()" (#34102)
This commit is contained in:
committed by
Christopher McCormack
parent
e74fcb2108
commit
42f274b665
@ -3,8 +3,12 @@ title: Hide Potentially Dangerous Information Using helmet.hidePoweredBy()
|
||||
---
|
||||
## Hide Potentially Dangerous Information Using helmet.hidePoweredBy()
|
||||
|
||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/information-security-and-quality-assurance/information-security-with-helmetjs/hide-potentially-dangerous-information-using-helmet.hidepoweredby/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
||||
### Hint
|
||||
|
||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
||||
- You want your `app` to `use` the `helmet.hidePoweredBy()` method on each request.
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
### Solution
|
||||
|
||||
- In the `myApp.js` file, add `app.use(helmet.hidePoweredBy());` under the second instructions.
|
||||
|
||||
**Note:** Be sure to submit the link to the **live demo** of your project.
|
||||
|
Reference in New Issue
Block a user