Closed UnchartedBull closed 4 years ago
replace 'localhost' with '127.0.0.1' in client connect method & your URL.
@eerFun
Hi
I had the same problem and solved it the same way you said. Thanks for a good solution.
I wonder why the localhost does not work, and 127.0.0.1 should be done.
Can you tell me or give me a link to a related resource?
I can't figure out why I get No session found every time ... First of all I'm using express with CORS (it will be disabled later on), so I'm aware, that I do need to set session_id=cookie manually. Passport correctly works with Postman.
In my testscript the cookie isn't saved for an unknown reason, but I extract the session_id from the Chrome Debugger and insert it manually (I double checked the request in the debugger, that it is correctly attached). Here is the code for the test script:
And the code for initializing passport and passport.socketio: