protected function setFrameOptions(Request $request, Response $response)
    {
        if (Zone::isBackend($request) && $this->app['config']->get('general/headers/x_frame_options')) {
            $response->headers->set('X-Frame-Options', 'SAMEORIGIN');
            $response->headers->set('Frame-Options', 'SAMEORIGIN');
        }
    }
protected function setFrameOptions(Request $request, Response $response)
    {
        if (Zone::isBackend($request) && $this->app['config']->get('general/headers/x_frame_options')) {
            $response->headers->set('X-Frame-Options', 'SAMEORIGIN');
            $response->headers->set('Frame-Options', 'SAMEORIGIN');
        }
    }
protected function setFrameOptions ( Request $ request , Response $ response ) { if ( Zone :: isBackend ( $ request ) && $ this -> app [ 'config' ] -> get ( 'general/headers/x_frame_options' ) ) { $ response -> headers -> set ( 'X-Frame-Options' , 'SAMEORIGIN' ) ; $ response -> headers -> set ( 'Frame-Options' , 'SAMEORIGIN' ) ; } }
Set the 'X-Frame-Options' headers to prevent click-jacking, unless
specifically disabled. Backend only!

@param Request  $request
@param Response $response
Set the X - Frame - Options headers to prevent click - jacking unless specifically disabled . Backend only!