-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