I am calling a API Delete function it accept only DELETE verb.
I have tried
$.ajax({
url: 'http://myurl',
type: 'DELETE',
success: function(result) {
// Do something with the result
});
But It shows Request Method as OPTIONS in Response Header.
Can anybody help me how i can send DELETE verb with ajax request.