Skip to content

Instantly share code, notes, and snippets.

@rmoff
Last active August 14, 2020 18:39
Show Gist options
  • Save rmoff/379e6ce46eb128110f38 to your computer and use it in GitHub Desktop.
Save rmoff/379e6ce46eb128110f38 to your computer and use it in GitHub Desktop.
Kibana 3 and Elasticsearch 1.4 - CORS problem

Kibana 3 against ElasticSearch 1.4 throws an Connection Failed screen. The error text says to set http.cors.allow-origin, but it misses out the important http.cors.enabled: true

Working config:

$ grep cors elasticsearch-1.4.0.Beta1/config/elasticsearch.yml
http.cors.allow-origin: "/.*/"
http.cors.enabled: true
@hmorgado
Copy link

yeah, it worked for me! thanks =)

@akaluzinski
Copy link

Thank you! It's very useful solution!

@isanjaykp
Copy link

Hmm... Worked for me.

@khoan
Copy link

khoan commented Jul 22, 2015

not working for ES 1.6 on AWS

@russray2008
Copy link

Thank you very much for your suggestion. This helped me fixed my issue.

@nsteblay
Copy link

Yes. For OS X El Capitan 10 using Chrome browser.
Adding the two lines to /usr/local/etc/elasticsearch/elasticsearch.yml
http.cors.allow-origin: "*"
http.cors.enabled: true
resolved the issue.

@sirLoaf
Copy link

sirLoaf commented Mar 25, 2016

thx. worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment