mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Prevent JSON response showing when re-opening closed tab (fixes silverstripe/silverstripe-cms#1121)
This commit is contained in:
parent
f86b0bbca0
commit
d6e1c5131c
@ -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