fix cors
This commit is contained in:
parent
5e22a94015
commit
de3539bfd9
@ -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' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user