Update index.md (#34108)

This commit is contained in:
Tom
2019-02-11 14:25:35 -06:00
committed by Christopher McCormack
parent aedcfad1c0
commit 723ef28ad1

View File

@ -3,8 +3,13 @@ title: Mitigate the Risk of Clickjacking with helmet.frameguard()
---
## Mitigate the Risk of Clickjacking with helmet.frameguard()
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/mitigate-the-risk-of-clickjacking-with-helmet.frameguard/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.frameguard()` method on each request.
- Don't forget to pass the appropriate configuration into the method.
<!-- 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.frameguard({action: 'deny'}));` under the third instructions.
**Note:** Be sure to submit the link to the **live demo** of your project.