Hi, I have trouble with using http client of Angular. My setup is below. I setup following this guide: https://angular.io/docs/ts/latest/guide/server-communication.html. How i use this service:
<https://lh3.googleusercontent.com/-B5m5Ys30TJw/WOOTCSWNEoI/AAAAAAAACd8/bEyMTMmtC2YjBHwlGZEgZEqnwoN_wuwgQCLcB/s1600/Capture.PNG> <https://lh3.googleusercontent.com/-iSZP6gRVBE0/WOOT9WkZK8I/AAAAAAAACeA/wVLLYxlgankMM6iW1SZGKHDthoqWlzHZgCLcB/s1600/Capture.PNG> this.httpService.get('http://localhost:3000/api/v1/tour').subscribe(res => console.log(res)); It should send a GET or POST to server, but actually it send an OPTION method to the server (all other method post,put,delete send OPTION too). The method is correct if i remove the RequestOption instance. I wonder if i am wrong in using this class? Thank for help. ps Sorry for my english grammar. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
