es-head chrome插件請求報錯 Content-Type header [application/x-www-form-urlencoded] is not supported

es-head chrome插件請求報錯: Content-Type header [application/x-www-form-urlencoded] is not supported

如圖:

對應方法:

修改目錄(elasticsearch5.x-head-chrome\elasticsearch-head)的vendor.js文件

1、6886行和7573行的

application/x-www-form-urlencoded 替換爲application/json;charset=UTF-8

請求就可以了:

 

備註:es-head chrome插件下載地址

https://download.csdn.net/download/u013761206/11604040

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章