For some reason it keep saying middleware should be mounted correctly helmet.hidePowerBy()

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: Glitch :・゚✧

Your browser information:

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

Challenge: Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Link to the challenge:

Is that actually a Node app? It looks like a static page template and I don’t see the package.json file.

I would suggest you use the Replit starter, or cloned from GitHub when creating the Glitch project (docs).


BTW, you have a 0 in the app.use

app.use(helmet.hidePoweredBy0);

Also, make sure you use the exact Helmet version that is asked for (3.21.3).

it didn’t work

As I said, it doesn’t look like a Node app to me. Follow the docs and import the GitHub repo as the starter.

On the dashboard page click the “New Project” button then click “Find more” > Scroll down > paste in the URL https://github.com/freeCodeCamp/boilerplate-infosec/ and write your code in that app.