fix cors
This commit is contained in:
parent
5e22a94015
commit
de3539bfd9
@ -49,16 +49,16 @@ class ApiController extends Controller
|
||||
'class' => GsCors::class,
|
||||
'cors' => [
|
||||
'Origin' => ['*'],
|
||||
'Access-Control-Request-Methods' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],
|
||||
//'Access-Control-Allow-Credentials' => true,
|
||||
'Access-Control-Allow-Headers' => [
|
||||
'Access-Control-Allow-Origin',
|
||||
'Access-Control-Request-Methods',
|
||||
'Access-Control-Allow-Methods',
|
||||
'Content-Type',
|
||||
'Access-Control-Allow-Headers',
|
||||
'Authorization',
|
||||
'X-Requested-With'
|
||||
],
|
||||
'Access-Control-Allow-Methods' => ['*'],
|
||||
]
|
||||
],
|
||||
'authenticator' => [
|
||||
|
Loading…
Reference in New Issue
Block a user