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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Rajneesh ChaubeyPosted Mar 1, 2018, 6:17 AM
Sumit AroraPosted Mar 1, 2018, 11:20 AM