From bff0970b9920297906c81d3e4c6415d86fd10c25 Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Tue, 10 Oct 2023 15:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E5=9F=9F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/http/middleware/LikeAdminAllowMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/http/middleware/LikeAdminAllowMiddleware.php b/app/common/http/middleware/LikeAdminAllowMiddleware.php index adb07969..d7382ae0 100644 --- a/app/common/http/middleware/LikeAdminAllowMiddleware.php +++ b/app/common/http/middleware/LikeAdminAllowMiddleware.php @@ -37,7 +37,7 @@ class LikeAdminAllowMiddleware public function handle($request, Closure $next, ?array $header = []) { header('Access-Control-Allow-Origin: *'); - header("Access-Control-Allow-Headers: Authorization, Sec-Fetch-Mode, DNT, X-Mx-ReqToken, Keep-Alive, User-Agent, If-Match, If-None-Match, If-Unmodified-Since, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Accept-Language, Origin, Accept-Encoding,Access-Token,token,version"); + header("Access-Control-Allow-Headers: Authorization, Sec-Fetch-Mode, DNT, X-Mx-ReqToken, Keep-Alive, User-Agent, If-Match, If-None-Match, If-Unmodified-Since, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Accept-Language, Origin, Accept-Encoding,Access-Token,token,version,appid,url,timestamp,sign"); header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, post'); header('Access-Control-Max-Age: 1728000'); header('Access-Control-Allow-Credentials:true'); -- 2.40.1