AJAX with a REST server without "allow-access-control-origin"

Hello friends.
I have some issue to connect with a REST server without “allow-access-control-origin” who I have not access. The prospect does’nt allow us to use allow-access-control-origin.

This is the REST url:

http://mobile.igps.com.br/acesso_app.php?user=turbosat&pass=95192c98732387165bf8e396c0f2dad2&push=22211122&pai=dHM=&s_o=2&v_s_o=A.12_6.35&v_app=1.3&lat=-23.456&lng=-46.456&valida_1=1

Someone can please help me?

You should be consider that everybody can read your username and password in the url.
And it does not look really professional if you need to send pw and username in rest api calls.

Man, I know it, and I’m agree with you! But not my client. lol
I have no access to this REST server, and I need to build the conversation with Ionic only.
About the password and login in the URL, this is just a test login, public login to testers.

this allow accesscontrol should be no problem if you run it on real device. there you need to to configure the cordova whitelist plugin.

For browser testing --> try to send JSONP requests instead of GET requests.

Thank’s! I’ll try that method. :smiley: