bug fixing

This commit is contained in:
Roland Schneider
2021-09-28 19:32:39 +02:00
parent 12f49e2362
commit dcf620f191
3 changed files with 29 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
namespace customerapi\controllers;
use common\helpers\CorsCustom;
use customerapi\models\LoginForm;
use sizeg\jwt\Jwt;
use sizeg\jwt\JwtHttpBearerAuth;
@@ -25,7 +26,7 @@ class LoginController extends Controller
$behaviors = parent::behaviors();
$behaviors['corsFilter'] = [
'class' => \yii\filters\Cors::className(),
'class' => CorsCustom::class,
'cors' => [
// restrict access to
'Origin' => ['https://botondfitness.hu'],