From 46e3527f73cccb34d058b9de96315b00aaca6e3f Mon Sep 17 00:00:00 2001 From: BA7JCM <79561519+BA7JCM@users.noreply.github.com> Date: Mon, 26 Jul 2021 01:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=B7=A8=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 3e584dc..63974be 100644 --- a/index.php +++ b/index.php @@ -5,6 +5,9 @@ include 'vendor/autoload.php'; include 'conststr.php'; include 'common.php'; +//允许跨域 +header('Access-Control-Allow-Origin: *'); +header('Access-Control-Allow-Methods: GET'); //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).''; if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') { if (getenv('ONEMANAGER_CONFIG_SAVE')=='file') include 'platform/TencentSCF_file.php';