Angular2 Get Request working fine but post request giving me error.this is my request
url = environment.API + "products/";
headers = new Headers({ 'Content-Type': 'application/json' });
options = new RequestOptions({ headers: this.headers });
constructor(private http:Http) {
}
getProductsList(data): Promise<any> {
return this.http.post(this.url+'getproductsbyfilters', JSON.stringify(data), this.options).toPromise()
.then(this.extractData)
.catch(this.handleErrorPromise);
}