i dont understand a thing please help me i have 0 idea what to do
solution: boilerplate-infosec (1) - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0
Challenge: Information Security with HelmetJS - Install and Require Helmet
Link to the challenge:
You shouldn’t alter the existing code:
const express = require('express');
const app = express();
The require keyword in Node.js is used to load modules, ready to be used in your code.
If you want to load the helmet package, which has already installed for you in npm, you simply require it with the require keyword.
In this case, just add a line of code below the existing lines (above) and use the variable name ‘helmet’ to require it (exactly as express has been required).
thank you i did that but why does it then say helmet must be required in package.json or what link specificly am i copy pasting
Helmet is already installed for you. You can see it in your dependencies in package,json.
igorgetmeabrain:
If you want to load the helmet package, which has already installed for you in npm, you simply require it with the require keyword.
In this case, just add a line of code below the existing lines (above) and use the variable name ‘helmet’ to require it (exactly as express has been required).
You haven’t done this. You need to require helmet in myApp.js.
system
Closed
July 30, 2023, 10:27pm
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.