(1)
elasticsearch-5x下的 config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
(2)elasticsearch-head下Gruntfile.js
http.cors.enabled: true
http.cors.allow-origin: "*"
(2)elasticsearch-head下Gruntfile.js