修改config/elasticsearch.yml文件

# 开启跨域
http.cors.enabled: true
# 允许所有
http.cors.allow-origin: "*"

相关文章: