CakePHPã§CSRF対çãè¡ãæ¹æ³ã§ãã ãã¬ã¼ã ã¯ã¼ã¯ã«å«ã¾ãã¦ããSecurityã³ã³ãã¼ãã³ãã使ãã¾ãã Security#requestAuth()ã«ã¢ã¯ã·ã§ã³ãè¨è¿°ãã¦ããã¨ãã¢ã¯ã·ã§ã³å®è¡åã«æ£è¦ãªã¯ã¨ã¹ããã©ããããã§ãã¯ãã¾ãããã§ãã¯ã®æ¹æ³ã¯CSRF対çã§ä¸è¬çãªã¯ã³ã¿ã¤ã ãã¼ã¯ã³æ¹å¼ã§ãã ã¾ãController#beforeFilter()ã«ã¦ãã§ãã¯ãè¡ãã¢ã¯ã·ã§ã³ãæå®ãã¾ãã [app/controller/test_controller.php] < ?php class TestController extends AppController { var $name = 'Test'; var $components = array('Security'); function beforeFilter() { $this->Security->req
{{#tags}}- {{label}}
{{/tags}}