Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Hide Potentially Dangerous Information Using helmet.hidePoweredBy()
0

#1

Hi!

I’m trying to end the Information Security with HelmetJS - Hide Potentially Dangerous Information Using helmet.hidePoweredBy() challange but I’m stuck.
I have to configure helmet to : app.use(helmet.hidePoweredBy());

So in my code:

var helmet = require('helmet');
app.use(helmet.hidePoweredBy());

When I run the test:

expected [] to include ‘hidePoweredBy’

What’s wrong??

Thanks you.


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

Any chances to see your glitch project?


#3

Of course!

Thanks you.


#4

Everything seems to be alright. Reload the challenge page and paste it again.

I’m assuming you’re using the correct URL (https://snapdragon-reason.glitch.me), right?


#5

Yes, Tried agains but same issue.


#6

I came here with the same problem.

For some reason just waiting 5 mins or so and then submitting again works.

Maybe there is caching on the server that takes a few minutes to update the headers?


#7

Hi mattszcz, I tried it waiting 5 min, 1 day,2…from other pc…and nothins works :S
I only notice the message change:
// running test
expected ‘Express’ to not equal ‘Express’
// tests completed


#8

Hi, finally solve by using another browser (firefox).

Thanks you!


#9

Just for anyone else coming here, it looks like the info is cached. I did a simple update on the html, and then it completed the challenge without a problem.


#10

Hello,
I added this line to the index.html page:

 <meta http-equiv="expires" content="0">

But I still get the error “expected ‘Express’ to not equal ‘Express’”
Could you please guide?
Thank you


#11

Hello.

For anyone facing the same issue, the code provided above is correct:

var helmet = require(‘helmet’);
app.use(helmet.hidePoweredBy());

You just need to reload page with challange omitting cache before pasting the link to your Glitch project

  • Ctrl + R for windows
  • Ctrl+Shift+R for Mac

#12

Reloading the curriculum quiz page and submitting the Glitch URL (after having updtaed the code there) again did it for me.
Thanks.