Advanced Node and Express - Registration of New Users TRIED EVRYTHING

i tried all possible changes i could

but still cannot figure out my mistake

started all over again but still cant figure out

github link -

here is the link to the test cases -

maybe you could help me after looking at the testcase?

to run my code - clone the repo, npm i, set env variables, node server

Hello there,

Here are some top tips for this challenge:

  1. When you submit the link to your project, open the browser devTools on the page, and watch out for any CORS related errors
  2. If you see any CORS errors, add the cors package to your app, and use it:
const cors = require('cors');
  1. Test, test, test - Test your app, to ensure it works as it should (registers, and redirects to profile, logs in, logs out)
  2. Navigate to freeCodeCamp/fcctesting.js, change line 47 (thereabouts) to:
res.setHeader('Access-Control-Allow-Origin', '');

Hope this helps