Skip to content

Instantly share code, notes, and snippets.

@rilwanfit
Created July 26, 2017 06:41
Show Gist options
  • Save rilwanfit/a36c47729115579d45762c807a28c350 to your computer and use it in GitHub Desktop.
Save rilwanfit/a36c47729115579d45762c807a28c350 to your computer and use it in GitHub Desktop.
class XFrameOptionHeader extends Zend_Controller_Plugin_Abstract
{
public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)
{
$this->_response->setHeader('X-FRAME-OPTIONS', 'DENY');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment