From 7d145b8fa669703620c249ea01c6aa98ca13162b Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 9 Aug 2021 12:12:15 +0300 Subject: [PATCH] user auth --- .../api/controllers/UserController.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/frontend/modules/api/controllers/UserController.php b/frontend/modules/api/controllers/UserController.php index 682357f..b8a9332 100644 --- a/frontend/modules/api/controllers/UserController.php +++ b/frontend/modules/api/controllers/UserController.php @@ -30,25 +30,25 @@ class UserController extends ActiveController 'application/json' => Response::FORMAT_JSON, ], ], - 'authenticator' => [ - 'class' => CompositeAuth::class, - 'authMethods' => [ - HttpBearerAuth::class, - ], - ], - 'corsFilter' => [ - 'class' => GsCors::class, - 'cors' => [ - 'Origin' => ['*'], - //'Access-Control-Allow-Credentials' => true, - 'Access-Control-Allow-Headers' => [ - 'Content-Type', - 'Access-Control-Allow-Headers', - 'Authorization', - 'X-Requested-With' - ], - ] - ] +// 'authenticator' => [ +// 'class' => CompositeAuth::class, +// 'authMethods' => [ +// HttpBearerAuth::class, +// ], +// ], +// 'corsFilter' => [ +// 'class' => GsCors::class, +// 'cors' => [ +// 'Origin' => ['*'], +// //'Access-Control-Allow-Credentials' => true, +// 'Access-Control-Allow-Headers' => [ +// 'Content-Type', +// 'Access-Control-Allow-Headers', +// 'Authorization', +// 'X-Requested-With' +// ], +// ] +// ] ]); }