Merge pull request #3575 from kinglozzer/pulls/fix-reopen-tab-response

FIX: Prevent JSON response showing when re-opening closed tab (fixes silverstripe/silverstripe-cms#1121)
This commit is contained in:
Damian Mooyman 2014-10-24 17:04:41 +13:00
commit 3f1102306d

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 // Prevent clickjacking, see https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
$this->response->addHeader('X-Frame-Options', 'SAMEORIGIN'); $this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');
$this->response->addHeader('Vary', 'X-Requested-With');
return $response; return $response;
} }