关于浏览器Ajax请求Type为Request Payload而不是Form Data

排查了许久。最后得出来是JqGrid插件的问题

没办法,底层不能改

在你Ajax请求中加上

headers : {
    'Content-Type' : 'application/x-www-form-urlencoded'
},

示例:

$.ajax({
    type : "POST",
    url : "../user/repwd",
    headers : {
      'Content-Type' : 'application/x-www-form-urlencoded'
    },
    data : data,
    dataType : "json",
});

解决

原文地址:https://www.cnblogs.com/zhousiwei/p/10625734.html