# Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

**URL:** <https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404>\
**Category:** General\
**Created:** [August 30, 2018, 6:36am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404 "2018-08-30T06:36:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![proquibas](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@proquibas](https://forum.freecodecamp.org/u/proquibas)\
**Post date:** [August 30, 2018, 6:36am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/1 "2018-08-30T06:36:36Z")

</div>

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:

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

```

When I run the test:

> expected to include ‘hidePoweredBy’

What’s wrong??

Thanks you.

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 30, 2018, 9:20am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/2 "2018-08-30T09:20:05Z")

</div>

Any chances to see your glitch project?

---

<div class="post-metadata">

**Author:** ![proquibas](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@proquibas](https://forum.freecodecamp.org/u/proquibas)\
**Post date:** [August 30, 2018, 9:45am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/3 "2018-08-30T09:45:21Z")

</div>

Of course!

> **[Glitch](https://glitch.com/edit/#!/snapdragon-reason?path=myApp.js:34:clock1030:)**
>
> Combining automated deployment, instant hosting & collaborative editing, Glitch gets you straight to coding so you can build full-stack web apps, fast

Thanks you.

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 30, 2018, 10:07am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/4 "2018-08-30T10:07:39Z")

</div>

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](https://snapdragon-reason.glitch.me)), right?

---

<div class="post-metadata">

**Author:** ![proquibas](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@proquibas](https://forum.freecodecamp.org/u/proquibas)\
**Post date:** [August 30, 2018, 11:33am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/5 "2018-08-30T11:33:58Z")

</div>

Yes, Tried agains but same issue.

---

<div class="post-metadata">

**Author:** ![mattszcz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mattszcz/32/87543_2.png) [@mattszcz](https://forum.freecodecamp.org/u/mattszcz)\
**Post date:** [August 31, 2018, 1:34am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/6 "2018-08-31T01:34:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![proquibas](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@proquibas](https://forum.freecodecamp.org/u/proquibas)\
**Post date:** [August 31, 2018, 5:50am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/7 "2018-08-31T05:50:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![proquibas](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@proquibas](https://forum.freecodecamp.org/u/proquibas)\
**Post date:** [August 31, 2018, 8:16am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/8 "2018-08-31T08:16:00Z")

</div>

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

Thanks you!

---

<div class="post-metadata">

**Author:** ![talleman21](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/talleman21/32/117870_2.png) [@talleman21](https://forum.freecodecamp.org/u/talleman21)\
**Post date:** [September 24, 2018, 8:08pm UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/9 "2018-09-24T20:08:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Anumer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/anumer/32/183784_2.png) [@Anumer](https://forum.freecodecamp.org/u/Anumer)\
**Post date:** [February 10, 2019, 4:57pm UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/10 "2019-02-10T16:57:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KuniMonkey](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@KuniMonkey](https://forum.freecodecamp.org/u/KuniMonkey)\
**Post date:** [February 14, 2019, 9:05pm UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/11 "2019-02-14T21:05:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![schafeld](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/schafeld/32/159126_2.png) [@schafeld](https://forum.freecodecamp.org/u/schafeld)\
**Post date:** [February 17, 2019, 11:27am UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/12 "2019-02-17T11:27:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:06pm UTC](https://forum.freecodecamp.org/t/hide-potentially-dangerous-information-using-helmet-hidepoweredby/222404/13 "2021-01-17T20:06:55Z")

</div>

Closed on January 17, 2021, 8:06pm UTC


