From 3fab8615cb9ce9bd3b543f69a347a6ae44b3c5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=96=E5=8F=AB?= <392494244@qq.com> Date: Fri, 8 Dec 2023 14:51:48 +0800 Subject: [PATCH] 1 --- public/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index f8908be..35da5a2 100755 --- a/public/index.php +++ b/public/index.php @@ -25,6 +25,9 @@ if (!is_file(INSTALL_URL . 'install.lock')) { exit; } +// 加载核心文件 +require __DIR__ . '/../vendor/autoload.php'; + header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE"); @@ -32,9 +35,6 @@ header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE"); header("Access-Control-Allow-Headers:x-requested-with, Referer,content-type,token,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding"); -// 加载核心文件 -require __DIR__ . '/../vendor/autoload.php'; - // 执行HTTP应用并响应 $http = (new App())->http;