If you cannot change or don’t have control of the CORS headers on the web server you are making calls to, then you’ll need to use the CapacitorHttp
plugin.
You can just enable it and not change anything else as it will intercept fetch
and XMLHttpRequest
requests. Or, you can use the plugin methods directly.