bug fixing
This commit is contained in:
@@ -20,20 +20,20 @@ class RestController extends Controller
|
||||
{
|
||||
$behaviors = parent::behaviors();
|
||||
|
||||
$auth = $behaviors['authenticator'];
|
||||
unset($behaviors['authenticator']);
|
||||
// $auth = $behaviors['authenticator'];
|
||||
// unset($behaviors['authenticator']);
|
||||
|
||||
$behaviors['corsFilter'] = [
|
||||
'class' => CorsCustom::class,
|
||||
'cors' => [
|
||||
// restrict access to
|
||||
'Origin' => ['https://botondfitness.hu'],
|
||||
// Allow credentials (cookies, authorization headers, etc.) to be exposed to the browser
|
||||
'Access-Control-Allow-Credentials' => true,
|
||||
]
|
||||
];
|
||||
// $behaviors['corsFilter'] = [
|
||||
// 'class' => CorsCustom::class,
|
||||
// 'cors' => [
|
||||
// // restrict access to
|
||||
// 'Origin' => ['https://botondfitness.hu'],
|
||||
// // Allow credentials (cookies, authorization headers, etc.) to be exposed to the browser
|
||||
// 'Access-Control-Allow-Credentials' => true,
|
||||
// ]
|
||||
// ];
|
||||
|
||||
$behaviors['authenticator'] = $auth;
|
||||
// $behaviors['authenticator'] = $auth;
|
||||
$behaviors['authenticator'] = [
|
||||
'class' => JwtHttpBearerAuth::class,
|
||||
'auth' => [$this, 'auth'],
|
||||
|
||||
Reference in New Issue
Block a user