mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +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()
|
||||
{
|
||||
$this->prepare();
|
||||
$this->sendCookies();
|
||||
if (! $this->getRequest()->isApiRequest()) {
|
||||
$this->sendCookies();
|
||||
}
|
||||
return parent::sendHeaders();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user