elasticsearch 版本:1.4.2
kibana 版本:3.1.2
按照http://stackoverflow.com/questions/26828099/kibana-returns-connection-...
添加了
http.cors.allow-origin: "/.*/"
http.cors.enabled: true
仍然无用,nginx给kibana加了
add_header Access-Control-Allow-Origin '*';
仍然提示
XMLHttpRequest cannot load http://10.0.10.221:9200/_nodes. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://kibana.dev.com' is therefore not allowed access.
直接访问http://10.0.10.221:9200/_nodes ok
现在不知道哪里出了问题
用最新版本的 ELK 就不会出问题
https://www.elastic.co