I have written an mvc action that works in Chrome and Firefox but not in IE11. Using IE11 it returns a 404 response code.
Controller:
[HttpDelete]
public ActionResult DeleteAction(int ActionID)
{
return Json(_Logic.DeleteAction(ActionID), JsonRequestBehavior.DenyGet);
}
Calling JS:
Ajax_Proxy.DeleteAction = function (_actionID, successCallback, failureCallback) {
return $.ajax({
type: "DELETE",
datatype: 'json',
url: "/root/someurl/DeleteAction?ActionId=" + _actionID,
contentType: 'application/json; charset=utf-8',
success: function (data) { successCallback(_actionID, data); },
error: function (data) { failureCallback(data); },
});
};
The Url I am accessing is correct, as it works in other browsers. Has anyone seen this before?