Elasticsearch-head 创建索引时后台报406
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
解决:编辑安装目录中的vendor.js
①. 6886行 contentType: "application/x-www-form-urlencoded
改成
contentType: “application/json;charset=UTF-8”
②. 7574/7573行 var inspectData = s.contentType === “application/x-www-form-urlencoded”
改成
var inspectData = s.contentType === “application/json;charset=UTF-8”