I was required to Use the helmet.hidePoweredBy() middleware to remove the X-Powered-By header. I have expressed it as, app.use (helmet.hidePoweredBy()); which according to forums is correct but I still get the error of // running tests
helmet.hidePoweredBy() middleware should be mounted correctly
// tests completed
Tests
Failed:1. helmet.hidePoweredBy() middleware should be mounted correctly, what could be the issue?
https://freecodecam-boilerplate-dloejknqruc.ws-eu117.gitpod.io, that is the link to my shared my workspace, i have checked and run the 3.23.3 version, then updated it to 4+ version and matched the code to the 4+ version and still nothing before finally just taking back to the 3.23.3 version and still nothing, am honestly out of ideas. Thanks for you help.
this is actually confusing i had it on, but decided to move on to the frameguard problem however the exact code you had entered is what i did but i dont understand why it wasnt working for me. Appreciate it alot though, and yes it passed. Thanks
Glad it has happened for the frame guard as well just like it was please show me what am doing wrong now the app.use(helmet.frameguard({ action:‘deny’ })); is on please look at it and tell me where am wrong so it doesn’t keep happening to me. Thanks. Apologies for the bother.
Why am asking is for the next problem, being to Use helmet.xssFilter() to sanitize input sent to your server, after inputting my code the same issue has occurred so am thinking maybe i have to keep doing it.
Yeah that was my error, as i hadn’t expected to keep mounting only one middleware per challenge. Thanks a lot. It keeps happening though so I will keep restarting the server whenever it happens
The code you have is passing the related challenge step.
Make sure you do not have multiple servers running. Stop the server, close any extra terminals listed in the lower right panel, start it again using the npm start script. If the server was started using the correct script the terminal will show the server restarting on file save.