@Dravere I tried this but it didn't seem to resolve the problem for me. I don't have the sites in sub-folders - I'm using different ports instead i.e 4567 and 4566
I added the code here:
https://github.com/NodeBB/NodeBB/pull/4663/commits/b530361851c45311e98b76759710216d595d22eb
Dravere created this issue in NodeBB/NodeBB closed Made the session cookie aware of the possible relative path #4663