Question: I am creating an API with our API server script and am trying to communicate with the API on the IONIC framework application. I am working but it keeps on bringing up the cross-origin blocked error: 

[![enter image description here](https://i.stack.imgur.com/x1jg4.png)](https://i.stack.imgur.com/x1jg4.png)

Answer: 
Cors error can only be resolved from server side.
But yes for browser only we can resolved it by installing cors extension but for device can be only from server side
The best solution that worked for me is to use ionic-native http. Follow the link to check its implementation-
<https://www.freakyjolly.com/ionic-4-native-http-plugin-tutorial-with-example/>