Intermittent Error opening kibana

When I open the kibana page, i intermittently recieve the following error, how do i go about fiixing this?

Error: unhandled courier request error: Cannot read property 'docs' of undefined
at handleError (
at DocRequest.AbstractReqProvider.AbstractReq.handleFailure (
at Array.forEach (native)
at processQueue (
at Scope.$eval (
at Scope.$digest (
at Scope.$apply (

Here's one resolved issue you could check;

If you scroll down to about the middle of the page you see where the problem was traced to a cors setting in Elasticsearch which changed from one release to another.

If this doesn't help, please respond with your versions of Elasticsearch and Kibana, which browser you are using, and if it was an upgrade or a clean install on your current versions.