I have domain A calling domain B to perform rest calls.
I am trying to send a rest api call from domain A that will delete an object on domain B. But the instead of sending operation DELETE, phantomjs sends operation POST.
I have tried the same with ajax, but i run into cross-domain not permitted issue.
var webPage = require('webpage');
var page = webPage.create();
var setting = {
operation : "DELETE" };
page.open('http://domainB/id' , setting, function(status){
//do some stuff
});