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

1.3 KiB

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 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

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