diff --git a/filters/ErrorToExceptionFilter.php b/filters/ErrorToExceptionFilter.php index 2b6967d..5307fc9 100755 --- a/filters/ErrorToExceptionFilter.php +++ b/filters/ErrorToExceptionFilter.php @@ -25,6 +25,12 @@ public function events() public function afterAction($event) { $response = Module::getInstance()->getServer()->getResponse(); + $headers = $response->getHttpHeaders(); + if (!empty($headers)) { + foreach ($headers as $k => $v) { + Yii::$app->response->headers[$k] = $v; + } + } $isValid = true; if($response !== null) {