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
For me this is what worked
public function beforeAction($action) { if($action->id == 'my-action') { Yii::$app->request->enableCsrfValidation = false; } return parent::beforeAction($action); }