Tell us what’s happening:
All I did is added this code to the blank space in myApp.js without deleting any existing code in the boilerplate.
const helmet = require(‘helmet’);
app.use(helmet.hidePoweredBy());
But I got this error:
helmet.hidePoweredBy() middleware should be mounted correctly
Your project link(s)
solution: https://3000-freecodecam-boilerplate-6ulg3a75rmp.ws-us115.gitpod.io
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Challenge Information:
Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy()