-1
到达服务器我可以调用删除事件成功地使用邮递员HTTP DELETE请求不是来自角2应用
http://localhost:8080/test/api/events/18
{"Content-Type":"application/json"}
和它的工作原理。
我就从角2应用相同的URL调用,比如以下:
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers });
let url = "http://localhost:8080/test/api/events/18";
this.http.delete(url, options);
or
this.http.delete(url)
没有达到服务器。
的可能的复制[2角HTTP GET没有得到(http://stackoverflow.com/questions/41381200/angular-2-http-get-not-getting) – jonrsharpe