diff --git a/frontend/modules/api/controllers/ProfileController.php b/frontend/modules/api/controllers/ProfileController.php index 12f9b65..e347d71 100644 --- a/frontend/modules/api/controllers/ProfileController.php +++ b/frontend/modules/api/controllers/ProfileController.php @@ -24,19 +24,19 @@ class ProfileController extends \yii\rest\Controller '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' => [ - 'Origin' => ['https://itguild.info'], - //'Access-Control-Allow-Credentials' => true, - 'Access-Control-Allow-Headers' => [ - 'Content-Type', - 'Access-Control-Allow-Headers', - 'Authorization', - 'X-Requested-With' - ], - ] - ] +// 'corsFilter' => [ +// 'class' => GsCors::class, +// 'cors' => [ +// 'Origin' => ['https://itguild.info'], +// //'Access-Control-Allow-Credentials' => true, +// 'Access-Control-Allow-Headers' => [ +// 'Content-Type', +// 'Access-Control-Allow-Headers', +// 'Authorization', +// 'X-Requested-With' +// ], +// ] +// ] ]; } diff --git a/frontend/modules/api/controllers/SkillsController.php b/frontend/modules/api/controllers/SkillsController.php index adf1706..1227319 100644 --- a/frontend/modules/api/controllers/SkillsController.php +++ b/frontend/modules/api/controllers/SkillsController.php @@ -22,19 +22,19 @@ class SkillsController extends \yii\rest\Controller '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' => [ - 'Origin' => ['*'], - //'Access-Control-Allow-Credentials' => true, - 'Access-Control-Allow-Headers' => [ - 'Content-Type', - 'Access-Control-Allow-Headers', - 'Authorization', - 'X-Requested-With' - ], - ] - ] +// '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' +// ], +// ] +// ] ]; }