Hi
I am using jquery to a call a webapi delete method and getting error "403 (ModSecurity Action)"
Below is the code i am using
$.ajax({
url: '/api/abd/DeleteArticle',
dataType: "json",
type: "DELETE",
contentType: 'application/json; charset=utf-8',
data: JSON.stringify({id: 20}),
async: true,
processData: false,
cache: false,
success: function (data) {
swal("Success!", "Your Article deleted successfully", "success");
location.reload();
},
error: function (xhr) {
alert('error');
}
});
} else {
swal("Cancelled", "Cancelled for deletion", "error");
}
});
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Rajneesh ChaubeyRank #1,073 · 1.8K reputationPosted Mar 1, 2018, 1:17 AM EST
Sumit AroraRank #1,926 · 762 reputationPosted Mar 1, 2018, 6:20 AM EST