Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个控制器,它包含多个 POST 操作,但是当我将数据发布到这些操作时,我的响应是:
{ "name": "请求被黑洞", "url": "/rest_sms_boxs.json" }
现在我该如何解决这个问题。
当然是安全模式。
在您的控制器中尝试:
public function beforeFilter() { parent::beforeFilter(); $this->Security->unlockedActions = array('your_method'); }