【发布时间】:2016-06-24 15:30:50
【问题描述】:
我正在尝试使用 Restangular 实现 DELETE 方法,但它一直给出错误 Method DELETE is not allowed by Access-Control-Allow-Methods。
已经看了很多,但还没有找到解决方案。请求与 POST MAN 无缝协作
var users = Restangular.all("users", userId);
return users.remove()
.then(function (response) {
return response;
});
通过上述请求方法作为 OPTIONS 发送,我认为它应该是 DELETE
【问题讨论】:
标签: angularjs restangular