Error: Invalid csrf token thrown when user tries to register or login
-
Sometimes, when a user tries to login or register in the forums, the server throws an Error: Invalid csrf token. I've been able to login on my phone and a friend told me he registered successfully, but another friend said there was an 'internal error' and I've been unable to login from my computer. Any ideas? I've tried rebooting the server multiple times, and this is the third version of NodeBB I've spun up.
-
I am having the same problem, @julian. I get more and more messages from users saying they can't log in... Any idea how to fix it?
@Quylaa what's your base URL set to in nodebb/config.json?
Also if you use nginx, check the proxy pass matches that base URL.
My proxy pass URL is
http://127.0.0.1:4567/
and the one in my nodebb config file ishttps://forum.magicmirror.builders/
since if I also make themlocalhost
links in the forum start withlocalhost
instead of the real domain is that a problem?