I'm trying to POST a JSON data into a webapi from Angular 9.
Here is my POST code
const headers=new HttpHeaders().set("Content-Type",'application/json');
let url:string=this.isServer?"":"https://localhost:44331/api";
console.info(JSON.stringify(data));
return this.client.post<any>(url+'/Crrequests',JSON.stringify(data),
{headers,responseType:"json",withCredentials:true});
When I execute it triggers an error saying
"One or more validation errors occurred"
in developer console.
But I checked with POSTMAN the same set of JSON. It works fine.
So not having an ideas whats wrong with it.