fix dev docker-compose env cors issues

This commit is contained in:
Schneider Roland
2023-01-18 19:01:21 +01:00
parent 38c2357856
commit 6037c81cbe
6 changed files with 12 additions and 10 deletions

View File

@@ -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) {