[ 'class' => AccessControl::class, 'rules' => [ [ 'actions' => ['index'], 'allow' => true, 'roles' => ['student'] ], ] ], 'corsFilter' => [ 'class' => Cors::class, ], ]; } public function actionIndex(){ return $this->render('@common/modules/student/components/block/views/block'); } }