bug fixing

This commit is contained in:
Roland Schneider 2021-09-28 19:42:26 +02:00
parent 0ca77b1395
commit ae1640c444

View File

@ -14,7 +14,7 @@ class CorsCustom extends Cors
parent::beforeAction($action);
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();
}