mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
3f1102306d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user