How to solve the problem that the node cannot log in to Elasticsearch?
Situation description: The node cannot log in to Elasticsearch
Solution
Modify the following fields in the configuration file /etc/elasticsearrch.yml (insert at the end)
http.cors.enabled: true #开启跨域访问支持,默认为false
http.cors.allow-origin: "*" #跨域访问允许的域名地址
Finally, restart the service.