-2

I write a controller and it contain multi POST action but whene i post data to these actions my response is :

{ "name": "The request has been black-holed", "url": "/rest_sms_boxs.json" }

Now how can i resolve this problem.

1 Answers1

1

Certainly the security mode.

Try in your controller:

public function beforeFilter() 
{
    parent::beforeFilter();
    $this->Security->unlockedActions = array('your_method');
}
MisterDebug
  • 915
  • 9
  • 15