From 493d0a4f66668c43dd4594b7e9a17c011854a0fc Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 5 Aug 2021 15:48:28 +0300 Subject: [PATCH] fix header --- frontend/modules/api/controllers/ProfileController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/modules/api/controllers/ProfileController.php b/frontend/modules/api/controllers/ProfileController.php index d60891d..f80dfb3 100644 --- a/frontend/modules/api/controllers/ProfileController.php +++ b/frontend/modules/api/controllers/ProfileController.php @@ -20,10 +20,10 @@ class ProfileController extends \yii\rest\Controller 'application/json' => \yii\web\Response::FORMAT_JSON, ], ], -// 'authenticatior' => [ -// 'class' => QueryParamAuth::class, //implement access token authentication -// 'except' => ['login'], // no need to verify the access token method, pay attention to distinguish between $noAclLogin -// ], + 'authenticatior' => [ + 'class' => QueryParamAuth::class, //implement access token authentication + 'except' => ['login'], // no need to verify the access token method, pay attention to distinguish between $noAclLogin + ], 'corsFilter' => [ 'class' => GsCors::class, 'cors' => [