x-pack设置完毕后,head无法登陆的问题

在elasticsearch.yml中添加如下三行配置

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

重启服务,并通过如下形式访问head端口
http://192.168.36.61:9100/?auth_user=elastic&auth_password=passwd

原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/12165963.html