diff --git a/src/App.php b/src/App.php index 903afcce91..82520ce107 100644 --- a/src/App.php +++ b/src/App.php @@ -299,7 +299,7 @@ public function caughtException(\Throwable $exception): void // remove header $this->layout->template->tryDel('Header'); - if (($this->isJsUrlRequest() || ($_SERVER['HTTP_X_REQUESTED_WITH'] ?? '') === 'XMLHttpRequest') + if (($this->isJsUrlRequest() || $this->request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest') && !isset($_GET['__atk_tab'])) { $this->outputResponseJson([ 'success' => false,