mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Don't send cookies on API requests
This commit is contained in:
parent
a5812c6b8a
commit
2d5bd3085f
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue