Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Describe your issue in detail here.;
Having trouble with adding helmet line on second challenge.
const express = require(‘express’);
const app = express();
app.use(helmet.hidePoweredBy());
that’s the code.
This is the error /home/runner/boilerplate-infosec/myApp.js:3
app.use(helmet.hidePoweredBy());
^

ReferenceError: helmet is not defined
at Object. (/home/runner/boilerplate-infosec/myApp.js:3:9)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.12.1
exit status 1
assist with next steps

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Challenge: Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.