Files
freeCodeCamp/curriculum/challenges/english/09-information-security/information-security-with-helmetjs/install-and-require-helmet.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.3 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

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.
*/