使用 Elasticsearch Head 查看“数据浏览”时,右侧不出数据,使用浏览器F12查看后,发现 406 Not Acceptable 错误。

解决方法


1、进入 es-head 安装目录;


2、cd _site/


3、编辑 vendor.js 共有两处


将 6886行 contentType: "application/x-www-form-urlencoded" 修改为 contentType: "application/json;charset=UTF-8"
然后再将 7574行 var inspectData = s.contentType === "application/x-www-form-urlencoded" && 修改为 var inspectData = s.contentType === "application/json;charset=UTF-8" &&


4、强制刷新浏览器验证。

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-08-18
  • 2021-12-20
  • 2022-01-19
  • 2021-11-21
  • 2021-12-22
猜你喜欢
  • 2021-07-03
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-01-04
相关资源
相似解决方案