FIX: Prevent JSON response showing when re-opening closed tab (fixes silverstripe/silverstripe-cms#1121)

This commit is contained in:
Loz Calver 2014-10-23 22:24:36 +01:00
parent f86b0bbca0
commit d6e1c5131c

View File

@ -457,6 +457,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
// Prevent clickjacking, see https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
$this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');
$this->response->addHeader('Vary', 'X-Requested-With');
return $response;
}