一、elasticsearch.yml 配置
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,X-Requested-With,Content-Type,Content-Length
二、es-head连接方式
在web界面访问时,该框由原来的 https://192.168.244.140:9200 替换为 https://192.168.244.140:9200/?auth_user=elastic&auth_password=123456