Does JQuery 1.8 or 1.7.2 support data parameters in a DELETE ajax request, e.g.
$.ajax({
url: '/config/delete',
type: 'DELETE',
data: {id:'blah'}
}
If not, a workaround could be
$.ajax({
url: '/config/delete?id=blah',
type: 'DELETE'
}
My questions:
I've seen people saying that they explicitly don't want to use the second approach, but why? Is there any security reason?
If the first approach does not work and the second approach is bad, what is the alternative here? Sending a POST request with a method argument, e.g. data:{... method:'delete'}?