You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My CI test webserver is on port 8000 so my tests continually failed but only on this server. The reason is that Firefox doesn't set cookies when there is a port in the domain. I'm not sure what other browsers could be affected.
I didn't want to fork for this simple fix but here it is for Experiments.php (notice the addition of a parse_url call when using $_SERVER):
/**
* @return string
*/
public static function getDomainName() {
if(static::$domainName == 'auto') {
return isset($_SERVER['HTTP_HOST']) ? parse_url(strtolower($_SERVER['HTTP_HOST']), PHP_URL_HOST) : null;
} elseif(static::$domainName) {
return static::$domainName;
} else {
throw new UnexpectedValueException('Unable to determine domain name, please provide one via setDomainName()!');
}
}
The text was updated successfully, but these errors were encountered:
My CI test webserver is on port 8000 so my tests continually failed but only on this server. The reason is that Firefox doesn't set cookies when there is a port in the domain. I'm not sure what other browsers could be affected.
I didn't want to fork for this simple fix but here it is for Experiments.php (notice the addition of a parse_url call when using $_SERVER):
The text was updated successfully, but these errors were encountered: