elasticsearch-head 集群健康值: 未连接

搜索引擎6年前 (2019)发布 admin
383 0

打开路径 “..\elasticsearch\config\ ” 下的 elasticsearch.yml 文件,在文件末尾添加如下代码:

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"

© 版权声明

相关文章