I experienced several CSRF errors before, mostly due to cookie/cache issues or dated themes.
Now this time, I changed the domain from test.domain.com
to domain.com
in my nginx config file and the nodeBB config.json. After that, I restarted nginx and NodeBB and tried to login, but am unable to because I'm getting "Forbidden" in the browser and error: /login - Invalid CSRF token
in the logfile.
Neither git pull
ing, npm up
ing, deleting the browser cache, restarting NodeBB/nginx/redis/the whole machine or using a completely different machine in another network helps.
Any ideas?
config.json:
{
"url": "https://schreibnacht.de",
"port": ["4567", "4568", "4569"],
"secret": " ... ",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": " ... ",
"database": "0"
}
EDIT: Weird enough, I just realized that at the old subdomain (as a CNAME) logging in is still possible...