I have an $.ajax call that is getting encoded with URL encoding. One thing I need to specify is this only happens in Microsoft Edge. Chrome and Firefox work fine with no issues.
Here is my Ajax call
var promise = $.ajax({
url: "/webapp/CustomPricing/StartPricing",
type: "POST",
contentType: 'application/json',
data: {
"model": JSON.stringify(this.model),
"numHandlingUnits": this.handlingUnitsCount,
"handlingUnits": this.commoditiesCount
},
xhrFields: {
withCredentials: true
}
});
Any ideas?
Wrap
JSON.stringifyaround data