Unable to pass the test even after entering correct code

Tell us what’s happening:
Hi,
I’m facing issues with three challenges in “Information Security with HelmetJS”. They
all require adding a simple line of code. The tests don’t pass even after submitting correct code. It’s only these three. All other challenges are running properly. Kindly help. I’m using glitch.
Link to my glitch source code : https://glitch.com/~coral-boatneck-mayflower
1) Challenge 1: Information Security with HelmetJS - Mitigate the Risk of Clickjacking with helmet.frameguard()
2) Challenge 2: Information Security with HelmetJS - Prevent IE from Opening Untrusted HTML with helmet.ieNoOpen()
3) Challenge 3 : Information Security with HelmetJS - Disable DNS Prefetching with helmet.dnsPrefetchControl()

Your code so far
package.json = > “helmet” : “^3.23.3”
var helmet = require(‘helmet’);

    1)  app.use( helmet.frameguard( {action: 'deny'} ) );
    2)  app.use( helmet.ieNoOpen() );
    3)  app.use( helmet.dnsPrefetchControl() );

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Firefox/78.0.

Challenge: Mitigate the Risk of Clickjacking with helmet.frameguard()

Link to the challenge:

  1. https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/mitigate-the-risk-of-clickjacking-with-helmet-frameguard

  2. https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/prevent-ie-from-opening-untrusted-html-with-helmet-ienoopen

  3. https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/disable-dns-prefetching-with-helmet-dnsprefetchcontrol

Hello~!

This is a known bug and there is currently a GitHub Issue open for it with a fix in the works. :slightly_smiling_face:

2 Likes

having the same issue