Files
freeCodeCamp/curriculum/challenges/english/06-information-security-and-quality-assurance/information-security-with-helmetjs/install-and-require-helmet.english.md
The Coding Aviator 49cc719af8 fix(formatting): Information Security with HelmetJS challenges (#35419)
* fix(formatting): Information Security with HelmetJS challenges

fix(formatting): Information Security with HelmetJS challenges

fix(formatting): Information Security with HelmetJS challenges

fix(formatting): Hetmet JS challenges

fix(formatting): Hetmet JS challenges

* fix(curriculum): Remove hr

* fix(formatting): Helmet JS

* Change code to blockquote

* fix: indented code in blockquotes
2019-03-03 09:07:37 -08:00

1.0 KiB

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

Description

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

Instructions

Install the Helmet package, then require it.

Tests

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

Challenge Seed

Solution

// solution required