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