Sumit Arora

Sumit Arora

  • NA
  • 504
  • 146k

Getting exception 403 (ModSecurity Action)

Mar 1 2018 3:37 AM
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");
}
});
 

Answers (2)