My site is opening on my laptop but on my iPhone 14 PRO I get the message “The invironment is not allowed” from src/Http/Environment.php:245
foreach ($allowed as $url) {
// skip invalid URLs
if (is_string($url) === false) {
continue;
}
$uri = new Uri($url, ['slash' => false]);
if ($uri->toString() === $this->baseUrl) {
// the current environment is allowed,
// stop before the exception below is thrown
return;
}
}
throw new InvalidArgumentException('The environment is not allowed');
}
I’m using v3.9.6 and PHP 8.1.22.
I don’t know enough to resolve this. I have a staging site that is working fine and I don’t see what the difference might be between the two.