diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index ecb4e47920..a9fb22f21b 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -131,7 +131,7 @@ class LoginController extends Controller { $this->userSession->logout(); $response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')); - $response->addHeader('Clear-Site-Data', '"cache", "cookies", "storage", "executionContexts"'); + $response->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); return $response; } diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index f3e6c85480..f2e8d112b6 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -117,7 +117,7 @@ class LoginControllerTest extends TestCase { ->willReturn('/login'); $expected = new RedirectResponse('/login'); - $expected->addHeader('Clear-Site-Data', '"cache", "cookies", "storage", "executionContexts"'); + $expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); $this->assertEquals($expected, $this->loginController->logout()); } @@ -147,7 +147,7 @@ class LoginControllerTest extends TestCase { ->willReturn('/login'); $expected = new RedirectResponse('/login'); - $expected->addHeader('Clear-Site-Data', '"cache", "cookies", "storage", "executionContexts"'); + $expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); $this->assertEquals($expected, $this->loginController->logout()); }