mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
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()
|
public function sendHeaders()
|
||||||
{
|
{
|
||||||
$this->prepare();
|
$this->prepare();
|
||||||
$this->sendCookies();
|
if (! $this->getRequest()->isApiRequest()) {
|
||||||
|
$this->sendCookies();
|
||||||
|
}
|
||||||
return parent::sendHeaders();
|
return parent::sendHeaders();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user