CORS for ionic?

In my Ionic app, I’m trapping errors that come back from the server, but most of them come back as {“isTrusted”:true} and I don’t get the actual error back.

I think this has to do with the way Ionic works with CORS, but I’m not quite sure what to add in my CORS to get the actual error back.

All of my other http calls work fine. It’s just exceptions that have the problem.

Any help here?

What are you using to make your HTTP requests? Some code examples would be useful.

There is nothing special in an Ionic app for CORS other than the Origin when running with Capacitor.

Ionic has a whole page about CORS too - CORS Errors: Cross-Origin Resource Sharing - Ionic Documentation