Why am I unable to pass the helmet FCC tests?

Tell us what’s happening:
I am unable to pass the helmet-related tests for the secure real time multiplayer game. I am using helmet ^3.21.3 as required by the challenge. Is this a problem with the FCC code by any chance? Do you know how I can get this to work? Note that I am already passing them in the tests within the console (3rd image)

Thanks for your time




Your project link(s)
‘solution: https://replit.com/@jaimeggb/secure-real-time-multiplayer-game-4

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Secure Real Time Multiplayer Game

Link to the challenge:

I’m seeing a CORS block in the browser network tab. When I add the cors middleware it passes.

You can add it to the main server.js file at the top after declaring the express app, or in the /_api/app-info route inside fcctesting.js.

app.get('/_api/app-info', cors(), function(req, res)

Both will work so just pick one.

There is a PR for it that was never merged for some reason. I have asked why it wasn’t merged.

it worked! I would’ve never guessed this, thank you @lasjorg!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.