bug fixing
This commit is contained in:
@@ -18,23 +18,12 @@ use yii\web\UnauthorizedHttpException;
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
class LoginController extends Controller
|
||||
class LoginController extends RestController
|
||||
{
|
||||
|
||||
public function behaviors()
|
||||
protected function getOptionalActions()
|
||||
{
|
||||
$behaviors = parent::behaviors();
|
||||
|
||||
$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,
|
||||
]
|
||||
];
|
||||
return $behaviors;
|
||||
return ['login'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user