Tell us what’s happening:
I saw all headers are corrected on my solution links but 4 final tests were failed.
Result from brower’s network is correct for all requests as below
This is my code
// server.js
const helmet = require("helmet");
const nocache = require("nocache");
app.use(
helmet({
noSniff: true,
xssFilter: true,
hidePoweredBy: {
setTo: "PHP 7.4.3",
},
})
);
app.use(nocache());
package.json
I found the FCC’s test cases here. I tried to copy and run them on local and I passed all but still failed 4 tests when I submitted.
What is my error? Any hint to fix it?
Your project link(s)
solution: https://real-time-multiplayer-game.herokuapp.com
githubLink: GitHub - japananh/boilerplate-project-secure-real-time-multiplayer-game: A boilerplate for a freeCodeCamp project.
replitLink: https://replit.com/@japananh/boilerplate-project-secure-real-time-multiplayer-game
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
.
Challenge: Secure Real Time Multiplayer Game
Link to the challenge: