1
This commit is contained in:
parent
9a695eacba
commit
3fab8615cb
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user