diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index ffe14ee45..eca389daa 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -254,7 +254,9 @@ class Response extends Zend_Controller_Response_Http public function sendHeaders() { $this->prepare(); - $this->sendCookies(); + if (! $this->getRequest()->isApiRequest()) { + $this->sendCookies(); + } return parent::sendHeaders(); } }