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,