So anyone else viewing this may try a solution to this problem. Try removing charset
from your contentType
. It worked for the problem above.
It could have to do with slight encoding differences between the two browsers, WCF may reject the incoming request given the encoding of the request doesn't actually match the encoding specified in the contentType
. While this isn't a sure fire solid answer. It's the best I have.
Final Code:
$.ajax({
type: 'POST',
url: '/App_Presentation/BDM/RdmUserCategoryService.svc/GetUserCategoryUsersByCategory',
data: '{ "categoryId" : "' + this.params.catId + '" }',
contentType: 'application/json'
dataType: 'json',
success: function (data) {
self.editCategoryData({
CategoryID: ko.observable(categoryId),
CategoryName: ko.observable(categoryName),
UserList: ko.observableArray([])
});
self.editCategoryData().UserList(data.d);
}});