Flarum works fine going through the IP of the server but when using the domain address the login returns me to the main page without logging in.
I've tried with CORS disabled on chrome to the same effect. Through the domain it does detect invalid passwords.
Both responses from "/login" POST are 200 - the only difference between the two is that one has a cookie while the other does not.
Is there any reason why the cookie would not be passed on through the domain?
From IP:
Cache-Control:no-cache
Connection:keep-alive
Content-Length:68
Content-Type:application/json; charset=UTF-8
Cookie:flarum_session=es60efo168fih0r7i8v4ge5e03
From domain:
Cache-Control:no-cache
Connection:keep-alive
Content-Length:68
Content-Type:application/json; charset=UTF-8