allowedSourceHosts(); if ($allowed === []) { throw new RuntimeException('No source host allowlist configured'); } if (!in_array(Settings::normalizeHost($sourceHost), $allowed, true)) { throw new RuntimeException('Source host is not allowed'); } } }