# Information Security with HelmetJS - Install and Require Helmet

**URL:** <https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339>\
**Category:** General\
**Created:** [March 16, 2019, 5:07am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339 "2019-03-16T05:07:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxabier](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dxabier/32/280227_2.png) [@dxabier](https://forum.freecodecamp.org/u/dxabier)\
**Post date:** [March 16, 2019, 5:07am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/1 "2019-03-16T05:07:10Z")

</div>

Im trying to pass the first challange but I always get this message:

Unexpected token \< in JSON at position 0.

I already installed Helmet and required it. I also get this error even if I don’t install Helmet.

---

<div class="post-metadata">

**Author:** ![padunk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/padunk/32/71781_2.png) [@padunk](https://forum.freecodecamp.org/u/padunk)\
**Post date:** [March 16, 2019, 5:27am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/2 "2019-03-16T05:27:57Z")

</div>

Can you share your code? glitch or github?

---

<div class="post-metadata">

**Author:** ![dxabier](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dxabier/32/280227_2.png) [@dxabier](https://forum.freecodecamp.org/u/dxabier)\
**Post date:** [March 16, 2019, 5:32am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/3 "2019-03-16T05:32:34Z")

</div>

Here is my glitch project [https://glitch.com/edit/#!/helmet-dxabier?path=server.js:41:38](https://glitch.com/edit/#!/helmet-dxabier?path=server.js:41:38)

---

<div class="post-metadata">

**Author:** ![padunk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/padunk/32/71781_2.png) [@padunk](https://forum.freecodecamp.org/u/padunk)\
**Post date:** [March 16, 2019, 5:38am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/4 "2019-03-16T05:38:46Z")

</div>

I have no problem with it and passed the test.  
Try restarting your browser or clear the cache. 🙂

---

<div class="post-metadata">

**Author:** ![dxabier](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dxabier/32/280227_2.png) [@dxabier](https://forum.freecodecamp.org/u/dxabier)\
**Post date:** [March 16, 2019, 5:53am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/5 "2019-03-16T05:53:07Z")

</div>

I tried both things. Nothing ☹

---

<div class="post-metadata">

**Author:** ![dxabier](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dxabier/32/280227_2.png) [@dxabier](https://forum.freecodecamp.org/u/dxabier)\
**Post date:** [March 16, 2019, 6:36am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/6 "2019-03-16T06:36:45Z")

</div>

I paste urls of different projects and get the same result. I tried to run this on Edge but dont get any result, it just says running but never ends.

---

<div class="post-metadata">

**Author:** ![padunk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/padunk/32/71781_2.png) [@padunk](https://forum.freecodecamp.org/u/padunk)\
**Post date:** [March 16, 2019, 8:57am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/7 "2019-03-16T08:57:10Z")

</div>

Weird, I used Chrome on Windows, I don’t know what is wrong.  
Last thing to do, try to just go on with the next challenge and see if you passed it or not.  
Or, restart the computer 🙂

---

<div class="post-metadata">

**Author:** ![Dereje1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dereje1/32/63598_2.png) [@Dereje1](https://forum.freecodecamp.org/u/Dereje1)\
**Post date:** [March 16, 2019, 9:31am UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/8 "2019-03-16T09:31:35Z")

</div>

Try pasting in the live version of your glitch project for the solution and not the edit version

---

<div class="post-metadata">

**Author:** ![dxabier](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dxabier/32/280227_2.png) [@dxabier](https://forum.freecodecamp.org/u/dxabier)\
**Post date:** [March 16, 2019, 5:42pm UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/9 "2019-03-16T17:42:04Z")

</div>

Thanks for your help. I finally pass using the url of the live version.

---

<div class="post-metadata">

**Author:** ![key](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/key/32/131067_2.png) [@key](https://forum.freecodecamp.org/u/key)\
**Post date:** [January 8, 2020, 2:47pm UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/10 "2020-01-08T14:47:02Z")

</div>

can you tell me what is url of the live version? i stuck in there too

---

<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 16, 2021, 1:03pm UTC](https://forum.freecodecamp.org/t/information-security-with-helmetjs-install-and-require-helmet/265339/11 "2021-01-16T13:03:44Z")

</div>


