This commit is contained in:
Kavalar 2023-04-20 00:06:23 +03:00
parent 5e22a94015
commit de3539bfd9

View File

@ -49,16 +49,16 @@ class ApiController extends Controller
'class' => GsCors::class, 'class' => GsCors::class,
'cors' => [ 'cors' => [
'Origin' => ['*'], 'Origin' => ['*'],
'Access-Control-Request-Methods' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],
//'Access-Control-Allow-Credentials' => true, //'Access-Control-Allow-Credentials' => true,
'Access-Control-Allow-Headers' => [ 'Access-Control-Allow-Headers' => [
'Access-Control-Allow-Origin', 'Access-Control-Allow-Origin',
'Access-Control-Request-Methods', 'Access-Control-Allow-Methods',
'Content-Type', 'Content-Type',
'Access-Control-Allow-Headers', 'Access-Control-Allow-Headers',
'Authorization', 'Authorization',
'X-Requested-With' 'X-Requested-With'
], ],
'Access-Control-Allow-Methods' => ['*'],
] ]
], ],
'authenticator' => [ 'authenticator' => [