fix dev docker-compose env cors issues
This commit is contained in:
@@ -33,7 +33,7 @@ class CorsFilter extends ActionFilter
|
||||
$this->request = \Yii::$app->getRequest();
|
||||
$this->response = \Yii::$app->getResponse();
|
||||
$origin = $this->request->headers->get('origin');
|
||||
\Yii::error("origin", $origin);
|
||||
// \Yii::error("origin is:". $origin);
|
||||
|
||||
$isOriginAllowed = array_search($origin, $this->allowedOrigins, true);
|
||||
if ($isOriginAllowed >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user