appbaseio / mirage

:art: GUI for simplifying Elasticsearch Query DSL
http://opensource.appbase.io/mirage
Other
2.21k stars 123 forks source link

Authentication error #13

Closed AbdullahAli closed 8 years ago

AbdullahAli commented 8 years ago

Whenever I try to connect, I get the following error, please help

screen shot 2016-10-06 at 15 06 01

siddharthlatest commented 8 years ago

@AbdullahAli will look into this.

farhan687 commented 8 years ago

@AbdullahAli Did you change your elasticsearch config file?

For example it should be something like this:

http.port: 9200
 http.cors.allow-origin: "*"
 http.cors.enabled: true
 http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization
 http.cors.allow-credentials: true
AbdullahAli commented 8 years ago

sweet! that worked 👍

if anyone else gets stuck:

just to confirm, I added what you suggested (without indenting after first line) into

/usr/local/etc/elasticsearch/elasticsearch.yml

(I installed elasticsearch via brew so your config file might be in a different place)

then I hit refresh a couple of time and connect/disconnect and it should work:

screen shot 2016-10-06 at 16 16 10