Elasticsearch 1.4.X 的CORS设置

最近将Elasticsearch由1.2.2升级到1.4.4后,sense工具无法使用了,它发到Elasticsearch集群的请求没有任何的响应。阅读了Elasticsearch的文档才了解到,这是1.4.X版本新增加的设置,参看Configuration Options。简单的讲,需要在.yml配置文件中添加如下的配置, 这样才能启动 Cross-origin resource sharing (CORS):

http.cors.enabled: true
http.cors.allow-origin: /.*/
http.cors.allow-credentials: true
上一篇:YUI Compressor


下一篇:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project taotao-manager-pojo: Compilation failure