diff --git a/application/Espo/Core/Api/ResponseWrapper.php b/application/Espo/Core/Api/ResponseWrapper.php index 02205096df..d551add36b 100644 --- a/application/Espo/Core/Api/ResponseWrapper.php +++ b/application/Espo/Core/Api/ResponseWrapper.php @@ -43,6 +43,9 @@ class ResponseWrapper implements ApiResponse public function __construct(Psr7Response $response) { $this->response = $response; + + // Slim adds Authorization header. It's not needed. + $this->response = $this->response->withoutHeader('Authorization'); } public function setStatus(int $code, ?string $reason = null)