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

1.2 KiB
Raw Blame History

id title challengeType forumTopicId localeTitle
587d8247367417b2b2512c36 Install and Require Helmet 2 301581 Установить и потребовать шлем

Description

Напомним, что этот проект строится на следующем стартовом проекте Glitch или клонируется из GitHub . Шлем помогает защитить ваши приложения Express, установив различные заголовки HTTP. Установите пакет, а затем выполните его.

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); })