<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';if (isset($_SERVER['HTTP_REFERER'])) { $domain = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST); header('Access-Control-Allow-Credentials: true', true); header_remove("Access-Control-Allow-Origin"); header("Access-Control-Allow-Origin: https://" . $domain , true);}return function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};