The failing Tests are the last 4 security tests.I have carefully implemented all required security headers using Express and Helmet, verified the headers via browser DevTools and curl, and tested the project both locally and on Replit using different Node.js versions. Despite the headers appearing correctly in network requests, the FreeCodeCamp test suite continues to mark these tests as failed.
Hi @Teller thank you for your reply,
Regarding the X-Powered-By header, I am using Helmet v3.22.0, which is the version required by this project’s boilerplate.
With this version, the correct and documented syntax is:
However I think I found a problem but I’m not sure about it when calling /_api/app-info, the request fails with a 500 error. The stack trace points to this line in routes/fcctesting.js:
Object.keys(res._headers)
That’s because in recent versions of Express / Node.js, res._headers is no longer available, which causes the tests to crash before they can actually read the headers.
Maybe this is the main problem .