Since Capacitor 4.0 there are two new core plugins that can make life with challenging APIs a lot easier.
If you encountered CORS issues before there is now a simple Capacitor HTTP Plugin that you can use to automatically use native libraries on iOS and Android to make API calls.
On top of that there’s now also a Capacitor Cookies Plugin which makes working with Cookies a lot easier as you can embrace the native libraries for Cookie management, which solves some previous problems.
Let’s see this in action by using a simply free duck API that has no CORS!
The full quick win with snippets is only available to Ionic Academy members.
Join now for
- Unlimited access to all quick wins
- Library of 40+ step-by-step video courses
- Support for Ionic questions via Slack & private community