mirror of https://github.com/Icinga/icinga2.git
parent
c9d2b968e9
commit
b11ab95f41
|
@ -214,7 +214,7 @@ bool HttpServerConnection::ManageHeaders(HttpResponse& response)
|
|||
|
||||
Array::Ptr headerAllowOrigin = listener->GetAccessControlAllowOrigin();
|
||||
|
||||
if (headerAllowOrigin->GetLength() != 0) {
|
||||
if (headerAllowOrigin && headerAllowOrigin->GetLength() != 0) {
|
||||
String origin = m_CurrentRequest.Headers->Get("origin");
|
||||
{
|
||||
ObjectLock olock(headerAllowOrigin);
|
||||
|
|
Loading…
Reference in New Issue