Please share where/how you are calling these methods in the Ionic pages/views.
How about your login page?
This sounds like the classic issue of not understanding Ionic’s Lifecycle - Vue Lifecycle | Ionic Documentation
That’s very possible due to how Live Reload works. Try swapping onMounted with ionViewWillEnter or ionViewDidEnter.
Seems like you need to fix that origin issue then. That looks like a custom response from your backend as a standard CORS error doesn’t return a response.






