let headers = new Headers({ ‘Content-Type’: ‘application/json’ });
let options = new RequestOptions({ headers: headers });
this.body.username=this.username;
this.body.password=this.password;
this.body.securitycodenew=HomePage.SecurityCode;
this.body.testing=HomePage.TESTING_Email;
console.log(headers);
console.log(this.body);
console.log(HomePage.SecurityCode);
this.http
.post("login.php", this.body, options)
.map(res => res.json())
.subscribe(
data => {
alert(data);
},
err => {
alert(err);
}
);
response
Response with status: 0 for URL: null