if (\Yii::$app->request->isOptions){
header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Method:POST');
header('Access-Control-Allow-Headers:authorization,content-type,test');
die();
}