From 06e51d63f30e85b92e927c182682045fa39f1100 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Mon, 13 Jan 2025 13:34:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B7=A8=E5=9F=9F=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/cors.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/cors.php b/config/cors.php index dc7758cd..ee958e8b 100644 --- a/config/cors.php +++ b/config/cors.php @@ -1,12 +1,12 @@ [], + 'paths' => ['*'], 'allowed_origins' => ['*'], 'allowed_origins_patterns' => [], - 'allowed_methods' => ['*'], - 'allowed_headers' => ['*'], + 'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'], + 'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization'], 'exposed_headers' => [], - 'max_age' => 0, + 'max_age' => 7200, 'supports_credentials' => true, ];