Don't send cookies on API requests
This commit is contained in:
parent
a5812c6b8a
commit
2d5bd3085f
|
@ -254,7 +254,9 @@ class Response extends Zend_Controller_Response_Http
|
|||
public function sendHeaders()
|
||||
{
|
||||
$this->prepare();
|
||||
if (! $this->getRequest()->isApiRequest()) {
|
||||
$this->sendCookies();
|
||||
}
|
||||
return parent::sendHeaders();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue