@Joshu1294 wrote:
Hi, my name is Joshua, I’m new with Ionic and Angular and I’m trying to develop a and Ionic app with a Rest api for the login, but, when I try to consume the api with the URL, I get some troubles and I would like to know if someone has faced with this situation before and knows a solution that I do not know.
The function to consume the api that I have, is this:
Where “credentials” are the parameters (email, password, remember_me), and “type” is an extension for the api´s url.
and… the ‘error’ I get when I try to run on my android device, is this…
an “Access-Control-Allow-Origin” error.
So… I would like to know if one of you knows something about this message and how to fix it.
Thank you in advance.Aditional information: I tried to set a proxy in the ionic.config.json and It works on webbrowsers, but still doesn’t work on devices.
Posts: 1
Participants: 1