Files
freeCodeCamp/curriculum/challenges/english/09-information-security/information-security-with-helmetjs/install-and-require-helmet.md
Tom 7ce85a8f03 fix(learn): update helmet and bcrypt instructions so we can remove them from boilerplates (#39954)
* fix: update helmet and bcrypt lesson instructions

* fix: update instrutions I missed

* Update curriculum/challenges/english/09-information-security/information-security-with-helmetjs/install-and-require-helmet.md

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

* Update curriculum/challenges/english/09-information-security/information-security-with-helmetjs/understand-bcrypt-hashes.md

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com>
2020-11-04 19:11:36 -08:00

1.4 KiB

id, title, challengeType, forumTopicId
id title challengeType forumTopicId
587d8247367417b2b2512c36 Install and Require Helmet 2 301581

Description

As a reminder, this project is being built upon the following starter project on Repl.it, or cloned from GitHub. Helmet helps you secure your Express apps by setting various HTTP headers.

Instructions

All your code for these lessons goes in the myApp.js file between the lines of code we have started you off with. Do not change or delete the code we have added for you.

Install Helmet version 3.21.3, then require it.

Tests

tests:
  - text: '<code>helmet</code> version <code>3.21.3</code> should be in <code>package.json</code>'
    testString: getUserInput => $.get(getUserInput('url') + '/_api/package.json').then(data => { var packJson = JSON.parse(data); assert(packJson.dependencies.helmet === '3.21.3' ); }, xhr => { throw new Error(xhr.responseText); })

Challenge Seed

Solution

/**
  Backend challenges don't need solutions, 
  because they would need to be tested against a full working project. 
  Please check our contributing guidelines to learn more.
*/