Information Security with HelmetJS - Understand BCrypt Hashes

Tell us what’s happening:

I am having trouble passing the Understand BCrypt Hashes tests.

I already did everything locally and with gitpod

I have used the bcrypt boilerplate (not the previous one)

I’m still getting both tests failed.

https://3000-freecodecam-boilerplate-ilhjvsln6z1.ws-us120.gitpod.io

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-ilhjvsln6z1.ws-us120.gitpod.io

Your browser information:

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

Challenge Information:

Information Security with HelmetJS - Understand BCrypt Hashes


forgot the pictures

I honestly think that something is wrong with the tests… I tried localy and w/gitpod following every step and detai, reading all posts and following youtube tutorials.

you know what actually
const cors = require(‘cors’)
app.use(cors())
needs to be placed just after
const app = express()
before
fccTesting(app);

Then it would work fine.

const app = express();
const cors = require('cors')
app.use(cors())
fccTesting(app);

This should be the pattern.

1 Like

Thanks bro, this sure worked. Have been stuck here for God know how long.