bug fixing
This commit is contained in:
parent
0ca77b1395
commit
ae1640c444
@ -14,7 +14,7 @@ class CorsCustom extends Cors
|
|||||||
parent::beforeAction($action);
|
parent::beforeAction($action);
|
||||||
|
|
||||||
if (Yii::$app->getRequest()->getMethod() === 'OPTIONS') {
|
if (Yii::$app->getRequest()->getMethod() === 'OPTIONS') {
|
||||||
Yii::$app->getResponse()->getHeaders()->set('Allow', 'POST GET PUT');
|
// Yii::$app->getResponse()->getHeaders()->set('Allow', 'POST GET PUT');
|
||||||
Yii::$app->end();
|
Yii::$app->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user