安装插件head git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head npm install npm start 解决方案 vim elasticsearch.yml 修改elasticsearch.yml文件 # 增加如下字段 http.cors.enabled: true http.cors.allow-origin: "*"