helmet.hidePoweredBy() middleware should be mounted correctly

Tell us what’s happening:
Sorry for asking to much basic questions guys… But i managed to pass te first test and i am able to understand how Repl works now. So, the problem now is that im receiving this message from the challenge:

helmet.hidePoweredBy() middleware should be mounted correctly

Your code so far
I did try the following code in myApp.js:

helmet.hidePoweredBy({ setTo: ‘PHP 4.2.0’ });
app.use(helmet.hidePoweredBy({ setTo: ‘PHP 4.2.0’ }))

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

Link to the challenge:

Hello there,

If you are struggling with these challenges, it is likely related to:

The tempory solution is:

In order to pass the test Mitigate the Risk of Clickjacking with helmet.frameguard() i had to go back to version: 2.3.0
Then at the test Ask Browsers to Access Your Site via HTTPS Only with helmet.hsts() i had to use the lastest version atm 3.23.3
Then at the test Disable DNS Prefetching with helmet.dnsPrefetchControl() i had to go back to version 2.3.0

Hope this helps

I had this same problem with the ‘Hide Potentially Dangerous Information’ test. Oddly enough, only the first run of the test fails…all subsequent ones seem to pass.