How to get POST data from outside (enableCsrfValidation disabled)?

There is a need to obtain data from the outside. Or Android app. But the $_POST comes empty. Have you tried enableCsrfValidation but nothing works. on the same hosting another php engine receives the data. What limitations still exist in Yii2?

public function beforeAction($action)
 { 
 if ($action->id == 'index') {

 Yii::$app->controller->enableCsrfValidation = false;

}

 return parent::beforeAction($action);
 }


Disabled for actionIndex
July 4th 19 at 22:52
1 answer
July 4th 19 at 22:54
if $_POST is empty, then your Android app sent it empty. What's yii?

Find more questions by tags Yii