Merge pull request #12006 from iPaat/Backport13/Fix11847
[stable13] Remove cookies from Clear-Site-Data Header
This commit is contained in:
commit
1a28789db1
|
@ -120,7 +120,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;
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,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());
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,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