Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue when running from elastichammer.exploringelasticsearch.com #4

Open
lightman76 opened this issue May 26, 2016 · 1 comment

Comments

@lightman76
Copy link

I have been using elastichammer for a while. I'm just upgrading from 0.90 series. The plugin installation is failing in the current elasticsearch versions (2.3.3) as noted in another open issue ( #3 ) , so I just tried using from the site elastichammer.exploringelasticsearch.com (I've used this in the past to connect to my different servers without having to install the plugin).

However I found that at some point CORS on the ES webserver has become disabled by default. Might be worth adding the config below to enable CORS to the README or perhaps in the client detecting a CORS failure and noting that CORS needs to be enabled on the server.

To enable CORS, add the following entries to the config/elasticsearch.yml

http.cors.enabled: true
http.cors.allow-origin: "elastichammer.exploringelasticsearch.com"  

Note: modify the origins as necessary or can use "*"

@andrewvc
Copy link
Owner

Hi @lightman76 , glad you found this useful!

Unfortunately I don't have the time to maintain this plugin anymore.

Now that sense is free ( https://www.elastic.co/guide/en/sense/current/installing.html ) I recommend using that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants