public function behaviors()
{
return [
'corsFilter' => [
'class' => \yii\filters\Cors::className(),
'cors' => [
'Origin' => ['https://test.test.ru'],
'Access-Control-Request-Method' => ['POST'],
],
],
];
}