Skip to content

Commit

Permalink
Merge pull request #5390 from KenTanaka/issue/5370
Browse files Browse the repository at this point in the history
メンテナンストークンにSecure属性を設定する
  • Loading branch information
chihiro-adachi authored Jun 28, 2022
2 parents 406d7f3 + 42235e0 commit 6381f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/EventListener/MaintenanceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6381f7b

Please sign in to comment.