elasticsearch-head 6.x 问题application/x-www-form-urlencoded

elasticsearch-head 6.x 问题application/x-www-form-urlencoded

6.x 版本的ES严格控制了Content-Type 问题,application/x-www-form-urlencoded不支持JSON格式的内容体,所以需要修改
elasticsearch-head-master_site\vendor.js 第7816行,在“if ( !s.crossDomain && !headers[“X-Requested-With”] )” 前
加上一行内容“headers[ “Content-Type” ] = “application/json”;” 即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_30540299/article/details/84103282
今日推荐