Cross origin problem on Mac simulator

I have created my app with ionic 1 with anjularjs. I developed my back-end with Java EE and hosted on google cloud platform. My problem is that my app does not support cross origin functionality on mac simulator but it works fine on android. What can I do to test my app on mac simulator? I do not have a real device and an apple developer account as well. How can I solve this issue?

Thanks

Sounds like you need a CORS header in your backend output, e.g… Access-Control-Allow-Origin: *

See also https://enable-cors.org/server.html

Thanks. I updated Java backend with CROS and solved my problem

1 Like