From 8aba19c21d75f1f852d3e04cea3abfeb120f7970 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Thu, 10 Jun 2021 22:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Middleware/CorsMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Middleware/CorsMiddleware.php b/app/Middleware/CorsMiddleware.php index 3aa707b..59b68d3 100644 --- a/app/Middleware/CorsMiddleware.php +++ b/app/Middleware/CorsMiddleware.php @@ -28,7 +28,7 @@ class CorsMiddleware implements MiddlewareInterface Context::set(ResponseInterface::class, $response); - if ($request->getMethod() == 'OPTIONS') { + if ($request->getMethod() == 'OPTIONS' || $request->getUri()->getPath() == '/favicon.ico') { return $response; }