From 9f716edea473a075a185b7764fc078854d1a7b95 Mon Sep 17 00:00:00 2001 From: jianyan74 Date: Mon, 16 Mar 2020 08:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E8=B7=A8=E5=9F=9F=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controllers/ActiveController.php | 7 +++---- merapi/controllers/ActiveController.php | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/api/controllers/ActiveController.php b/api/controllers/ActiveController.php index a95c410da..08cb5fbaf 100644 --- a/api/controllers/ActiveController.php +++ b/api/controllers/ActiveController.php @@ -51,11 +51,10 @@ public function behaviors() { $behaviors = parent::behaviors(); // 跨域支持 -// $behaviors['corsFilter'] = [ -// 'class' => Cors::class, -// ]; + $behaviors['corsFilter'] = [ + 'class' => Cors::class, + ]; - // var_dump(1);die(); // 移除行为的权限验证的优先级 unset($behaviors['authenticator']); diff --git a/merapi/controllers/ActiveController.php b/merapi/controllers/ActiveController.php index b6465cd81..69376d99f 100644 --- a/merapi/controllers/ActiveController.php +++ b/merapi/controllers/ActiveController.php @@ -51,11 +51,10 @@ public function behaviors() { $behaviors = parent::behaviors(); // 跨域支持 -// $behaviors['corsFilter'] = [ -// 'class' => Cors::class, -// ]; + $behaviors['corsFilter'] = [ + 'class' => Cors::class, + ]; - // var_dump(1);die(); // 移除行为的权限验证的优先级 unset($behaviors['authenticator']);