user auth
This commit is contained in:
parent
e73ac5e5df
commit
7d145b8fa6
@ -30,25 +30,25 @@ class UserController extends ActiveController
|
|||||||
'application/json' => Response::FORMAT_JSON,
|
'application/json' => Response::FORMAT_JSON,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'authenticator' => [
|
// 'authenticator' => [
|
||||||
'class' => CompositeAuth::class,
|
// 'class' => CompositeAuth::class,
|
||||||
'authMethods' => [
|
// 'authMethods' => [
|
||||||
HttpBearerAuth::class,
|
// HttpBearerAuth::class,
|
||||||
],
|
// ],
|
||||||
],
|
// ],
|
||||||
'corsFilter' => [
|
// 'corsFilter' => [
|
||||||
'class' => GsCors::class,
|
// 'class' => GsCors::class,
|
||||||
'cors' => [
|
// 'cors' => [
|
||||||
'Origin' => ['*'],
|
// 'Origin' => ['*'],
|
||||||
//'Access-Control-Allow-Credentials' => true,
|
// //'Access-Control-Allow-Credentials' => true,
|
||||||
'Access-Control-Allow-Headers' => [
|
// 'Access-Control-Allow-Headers' => [
|
||||||
'Content-Type',
|
// 'Content-Type',
|
||||||
'Access-Control-Allow-Headers',
|
// 'Access-Control-Allow-Headers',
|
||||||
'Authorization',
|
// 'Authorization',
|
||||||
'X-Requested-With'
|
// 'X-Requested-With'
|
||||||
],
|
// ],
|
||||||
]
|
// ]
|
||||||
]
|
// ]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user