-4
私logincomponentインサイド
2/4の角度:(メソッド許可されていません)私のAuthServiceインサイド
this.authenticationService.login('user', 'password').subscribe(comments => {
alert('success');
});
405:
login(username: string, password: string) {
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers });
let url = 'http://22.5.66.58/api/v1/Identity/Login';
console.log(this.data);
return this.http.post(url, this.data, options).map((res: Response) => res.json());
}