在es6.x中连接不到head。
需要在配置文件conf/elasticsearch.yml中添加:
http.cors.enabled: true
http.cors.allow-origin: "*"
修改完,重启es和head,则可以连接
在es6.x中连接不到head。
需要在配置文件conf/elasticsearch.yml中添加:
http.cors.enabled: true
http.cors.allow-origin: "*"
修改完,重启es和head,则可以连接