Fix cookie domain_domain

This commit is contained in:
grandeljay 2022-09-22 16:42:02 +02:00
parent 7d5fe7eadc
commit e89d3d51a2

View file

@ -51,7 +51,7 @@ if (file_exists($configPath)) {
*/
$cookie_domain = $_SERVER['HTTP_HOST'];
if (defined('CHANNELS') && is_iterable(CHANNELS)) {
if (defined('CHANNELS') && is_iterable(CHANNELS) && defined('ENV_IS_DEV') && ! ENV_IS_DEV) {
foreach (CHANNELS as $channel) {
if ('stable' === $channel['branch']) {
$cookie_domain = $channel['host'];