How to add http Authorization header for elasticsearch 5.0 to haystack configuration in djnago

HTTP Authorization header has been added in elasticsearch 5.0 .
How to add this field to haystack configuaration in django ?
Without this django isn't able to connect to elasticseach.
And throwing elasticsearch.exceptions.AuthenticationException: TransportError(401, u'security_exception') error.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.