一、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界面访问时,该框由原来的 http://172.16.3.227:9100替换为 http://172.16.3.227:9100/?auth_user=elastic&auth_password=123456

ES开启安全密码认证后,es-head连接方式_elk