Hello, I’m working on the Advanced Node and Express challenges. In exercise 10, tests 4 and 5 (“Logout should work” and “Profile should no longer work after logout”) keep failing, even though everything works manually. I’ve tested in multiple browsers, used Passport 0.4.1, deployed on Replit, and followed all forum suggestions. Registration, login, logout, and session protection behave correctly. Is this a known issue with the tests? Thanks in advance!
I was facing the same thing (3/5 tests passing but for some reason Tests 4 and 5 not working at all - even though on the surface everything was working just fine).
Found out it’s a CORS problem (at least in my situation).
Dude, I just logged into my account for the first time after the moment I created it just to comment “THANK YOU”. It was a cors issue the whole time and you found the solution, you have no idea how much I’ve been struggling with this for 4 days. Thank you, again!!