fix CORSE add Access-Control-Allow-Origin to Headers

This commit is contained in:
iIronside
2023-01-13 15:46:15 +03:00
parent 1394e89d45
commit 55f412c8eb
3 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class ProfileController extends ApiController
'verbs' => [
'class' => \yii\filters\VerbFilter::class,
'actions' => [
'' => ['get'],
'' => ['GET', 'HEAD', 'OPTIONS'],
'profile-with-report-permission' => ['post', 'patch'],
'get-main-data' => ['get']
],