From 2a3933b436ca20daad2f965471b69ccfb64f3447 Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Sun, 4 Aug 2019 15:22:35 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0header=E5=A2=9E=E5=8A=A0token=E5=90=8E?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/route.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/route/route.php b/route/route.php index 855e3968..b5d21b26 100644 --- a/route/route.php +++ b/route/route.php @@ -17,6 +17,8 @@ Route::view('compatibility', 'index@tpl/compatibility'); Route::group('api', function () { Route::post('token', 'api/Token/index'); Route::post('upload', 'api/Upload/index'); -})->allowCrossDomain(); +}) + ->header('Access-Control-Allow-Headers', 'Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, Token') + ->allowCrossDomain(); return [];