Getting CORS error in getting response from an api

Getting CORS error in getting response from API…How to solve it …

What backend you are using.?

And also go to Mozilla MDN readon about CORS

If you using chrome try Allow CORS: Access-Control-Allow-Origin extension that will help if still not help then check from your server side

Or you can setup Ionic proxy if you have no control over the target domain
handling CORS with The Ionic 5 Proxy

Please read this one from Ionic team. https://ionicframework.com/docs/troubleshooting/cors