Skip to main content

--description--

Working on these challenges will involve you writing your code using one of the following methods:

  • Clone this GitHub repo and complete these challenges locally.
  • Use our Gitpod starter project to complete these challenges.
  • Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.

Helmet helps you secure your Express apps by setting various HTTP headers.

--instructions--

All your code for these lessons goes in the myApp.js file between the lines of code we have started you off with. Do not change or delete the code we have added for you.

Helmet version 3.21.3 has already been installed, so require it as helmet in myApp.js.

--hints--

helmet version 3.21.3 should be in package.json

(getUserInput) =>
$.get(getUserInput('url') + '/_api/package.json').then(
(data) => {
const packJson = JSON.parse(data);
const helmet = packJson.dependencies.helmet;
assert(helmet === '3.21.3' || helmet === '^3.21.3');
},
(xhr) => {
throw new Error(xhr.responseText);
}
);