参考网上的资料,此处仅作为个人记录 编辑elasticsearch.yml,加入以下内容: ``` http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type ``` 使用下面的url格式进行访问 ``` http://ip:9100/?auth_user=elastic&auth_password=elastic ``` 参考: ``` https://www.cnblogs.com/jinhaolin/p/9649203.html#head%E5%AE%89%E8%A3%85 ``` 最后修改:2019 年 09 月 05 日 05 : 52 PM © 著作权归作者所有