Created
June 3, 2014 07:21
-
-
Save memememomo/4003d0bce21cded45aba to your computer and use it in GitHub Desktop.
Controller間共通でHTTPヘッダを追加する方法 ref: http://qiita.com/uchiko/items/e61d11ddff71e5330194
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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