Celestine Timmy
Celestine Timmy

Reputation: 55

elasticsearch head not showing any data or getting connected

I have upgraded to elasticsearch 2.0.0 in my system and installed the elasticsearch-head plugin. But it is not getting connected and hence no display of the indices residing in my es server. Im able to index documents and display them via CURL. I have tried editing the elasticsearch.yml file like below:

http:cors.enabled : true

But this also seems not working. Any idea,of why this is happening?.

Upvotes: 0

Views: 795

Answers (1)

Val
Val

Reputation: 217564

You need to set the http.cors.allow-origin explicitly since there is no default value anymore since ES 2.0. Previously, that setting was set to * but that was considered a bad practice from the security point of view.

http.cors.allow-origin: /https?:\/\/localhost(:[0-9]+)?/

Upvotes: 0

Related Questions