freeCodeCamp/curriculum/challenges/english/06-information-security-and.../information-security-with-h.../install-and-require-helmet....

1.0 KiB

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