【发布时间】:2012-08-08 07:28:08
【问题描述】:
在我的 ajax 调用中处理安全组件没有按应有的方式进行。
在 cakephp 2.x 中你如何处理它?
Appcontroller.php
public function beforeFilter() {
$this->Security->blackHoleCallback = 'blackhole';
if ($this->request->is('ajax')) {
$this->Security->validatePost = false;
}
好像没用……
【问题讨论】:
标签: security jquery cakephp-2.1