Hi,
I have an api and I installed CORS plugin in chrome. my problem is my api is not working on ionic build or rather in device. but in my ionic serve and I enabled CORS plugin extension it’s working. Can you help me with my problem.
here’s my function
getMatches(){
this.http.get('https://api.wh.geniussports.com/v1/basketball/competitions/19816/matcheslive?ak=eebd8ae256142ac3fd24bd2003d28782&fromDate=2017-11-17&toDate=2017-12-17&teamId=88261&limit=1')
.map(res => res.json())
.subscribe(data => {
this.dataMatches = data.response.data;
console.log(this.dataMatches);
}, err => {
console.log(err);
});
}
here’s my device inspector result for ios