How can I disable cakephp security? -
i used
public function beforefilter() { parent::beforefilter(); $this->security->validatepost = false; $this->security->csrfcheck = false; $this->security->unlockedactions = array('my_action'); }
but it's not work , still report
security error requested address not found on server. request blackholed due "auth" violation.
i remember working , can post data stopped suddenly. i'm not sure happens , try search result it's not work. how can stop security components in cakephp ?
i use
public function beforefilter() { parent::beforefilter(); $this->components->disable('security'); }
you try securitycomponent::validatepost
using configuration option for:
here defined particular action can chage per need.
if(in_array($this->action,array(“some_action”))){ $this->security->validatepost = false; }
Comments
Post a Comment