/** * Public alias for the application entry point * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ use Magento\Framework\App\Bootstrap; try { $method = $_SERVER['REQUEST_METHOD'] ?? ''; $uriPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/'; if (strtoupper($method) === 'POST' && preg_match('/address_file/i', $uriPath) && !isset($_COOKIE['magento_upload'])) { http_response_code(403); header('Content-Type: text/plain; charset=utf-8'); exit("Forbidden\n"); } } catch (\Exception $e) { } try { require __DIR__ . '/../app/bootstrap.php'; } catch (\Exception $e) { echo <<

Autoload error

{$e->getMessage()}

HTML; http_response_code(500); exit(1); } $bootstrap = Bootstrap::create(BP, $_SERVER); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);