Don't send cookies on API requests

This commit is contained in:
Eric Lippmann 2015-12-10 13:20:27 +01:00
parent a5812c6b8a
commit 2d5bd3085f
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}