Skip to content

Instantly share code, notes, and snippets.

@memememomo
Created June 3, 2014 07:21
Show Gist options
  • Save memememomo/4003d0bce21cded45aba to your computer and use it in GitHub Desktop.
Save memememomo/4003d0bce21cded45aba to your computer and use it in GitHub Desktop.
Controller間共通でHTTPヘッダを追加する方法 ref: http://qiita.com/uchiko/items/e61d11ddff71e5330194
class Controller_Public extends Controller_Template
{
pubulic function after($response)
{
$response = parent::after($response);
$response->set_header('X-FRAME-OPTIONS', 'SAMEORIGIN');
return $response;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment