From 895a83b09491a463b222180ea5cba97e7ce6330c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 30 Aug 2021 14:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-helper/Route/CoreMiddleware.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http-helper/Route/CoreMiddleware.php b/http-helper/Route/CoreMiddleware.php index dfd58156..c95b1c39 100644 --- a/http-helper/Route/CoreMiddleware.php +++ b/http-helper/Route/CoreMiddleware.php @@ -29,9 +29,9 @@ class CoreMiddleware extends MiddlewareAbstracts { /** @var Response $response */ $response = \response(); - $response->withAccessControlAllowOrigin($request->getUri()->getHost()); - $response->withAccessControlRequestMethod($request->getAccessControlRequestMethod()); - $response->withAccessControlAllowHeaders($request->getAccessControlRequestMethod()); + $response->withAccessControlAllowOrigin($request->getUri()->getHost()) + ->withAccessControlRequestMethod($request->getAccessControlRequestMethod()) + ->withAccessControlAllowHeaders($request->getAccessControlRequestMethod()); return $next($request); }