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: 
Creating proxy only works for when you run Ionic on your browser using `ionic -serve`. CORS issue is still a problem when you run on your device, specially on iOS with WKWebView.

In those cases, you can use Cordova's native HTTP plugin.

See here for details:

<https://hackernoon.com/a-practical-solution-for-cors-cross-origin-resource-sharing-issues-in-ionic-3-and-cordova-2112fc282664>
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/>