Is there a way to disable CSRF validation for some actions of the controller keeping it enabled for the other ones?
In my case I have several configurable Action cla
Put this inside your controller, just replace index with whatever action you want to disable csrf on.
csrf
public function beforeAction() { if ($this->action->id == 'index') { $this->enableCsrfValidation = false; } return true; }