Due the lastest updates on platform webviews, cors as become a problem in our Ionic apps. For that reason, we need to use cordova-plugin-advanced-http plugin to perform http calls from mobile devices. However, in web enviroment, Angular’s HttpClient still need to be used. So we have to do our own wrapper to use one or another way of using http depending of the platform. I really don’t know why Ionic Team haven’t gone in deep with this… it’s supposed that the app should work in both, mobile and web. Anyway I’ve found ionic-native-http-connection-backend, which deals with this problem!. I’m not the author of it, but I wanted to share it with the community.
can you share also code of this?
Best regards, anna-liebt