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 - https://github.com/shameekagarwal/fccadvancednode
here is the link to the test cases - https://github.com/PartyLich/freeCodeCamp/blob/master/curriculum/challenges/english/06-information-security-and-quality-assurance/advanced-node-and-express/registration-of-new-users.english.md
maybe you could help me after looking at the testcase?
to run my code - clone the repo, npm i, set env variables, node server
Sky020
2
Hello there,
Here are some top tips for this challenge:
- When you submit the link to your project, open the browser devTools on the
freecodecamp.org/learn page, and watch out for any CORS related errors
- If you see any CORS errors, add the
cors package to your app, and use it:
const cors = require('cors');
app.use(cors());
- Test, test, test - Test your app, to ensure it works as it should (registers, and redirects to profile, logs in, logs out)
- Navigate to
freeCodeCamp/fcctesting.js, change line 47 (thereabouts) to:
res.setHeader('Access-Control-Allow-Origin', 'https://www.freecodecamp.org');
Hope this helps