elastic-hammer icon indicating copy to clipboard operation
elastic-hammer copied to clipboard

CORS issue when running from elastichammer.exploringelasticsearch.com

Open lightman76 opened this issue 9 years ago • 1 comments

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 "*"

lightman76 avatar May 26 '16 19:05 lightman76

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.

andrewvc avatar May 26 '16 20:05 andrewvc