From d2f55c147ef2cfbdaed9b85091e07647721fd0de Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 17 Jan 2025 10:44:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/v1/Article.php | 1 - config/cors.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/admin/controller/v1/Article.php b/app/admin/controller/v1/Article.php index ecf8253a..62992d3a 100644 --- a/app/admin/controller/v1/Article.php +++ b/app/admin/controller/v1/Article.php @@ -232,7 +232,6 @@ class Article header('Cache-Control: max-age=0'); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); $writer->save('php://output'); - exit; } // 获取文章导出数据 diff --git a/config/cors.php b/config/cors.php index ee958e8b..cbfca695 100644 --- a/config/cors.php +++ b/config/cors.php @@ -5,7 +5,7 @@ return [ 'allowed_origins' => ['*'], 'allowed_origins_patterns' => [], 'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'], - 'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization'], + 'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization', 'Content-Disposition'], 'exposed_headers' => [], 'max_age' => 7200, 'supports_credentials' => true,