I was running the asset library on localhost:8000 and Firefox did just not set the token cookie at all, making login impossible. Turns out $_SERVER['HTTP_HOST'] includes the port, while the Domain part in the Set-Cookie header should not. Using $uri->getHost() fixes this.
Other occurences where URL building happened were streamlined to only use Uri methods as well.
I was running the asset library on
localhost:8000
and Firefox did just not set thetoken
cookie at all, making login impossible. Turns out$_SERVER['HTTP_HOST']
includes the port, while theDomain
part in theSet-Cookie
header should not. Using$uri->getHost()
fixes this.Other occurences where URL building happened were streamlined to only use
Uri
methods as well.