Merge pull request #11847 from iPaat/Fix/DeleteCookiesThroughClearSiteData
Remove cookies from Clear-Site-Data Header
This commit is contained in:
commit
e0f9257be9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue