From 42235e029b0f487965e1503491065f123e1f246d Mon Sep 17 00:00:00 2001 From: ken_tanaka Date: Tue, 14 Jun 2022 15:37:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=86=E3=83=8A=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=BC=E3=82=AF=E3=83=B3=E3=81=ABSecure?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/EventListener/MaintenanceListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Eccube/EventListener/MaintenanceListener.php b/src/Eccube/EventListener/MaintenanceListener.php index 653a33501a9..20305a1952e 100644 --- a/src/Eccube/EventListener/MaintenanceListener.php +++ b/src/Eccube/EventListener/MaintenanceListener.php @@ -54,10 +54,10 @@ public function onResponse(ResponseEvent $event) $user = $this->requestContext->getCurrentUser(); if ($user instanceof Entity\Member && $this->requestContext->isAdmin()) { - $cookie = new Cookie( + $cookie = (new Cookie( SystemService::MAINTENANCE_TOKEN_KEY, $this->systemService->getMaintenanceToken() - ); + ))->withSecure(true); $response->headers->setCookie($cookie); } }