I’ve got an issue whit $http, when i call an http GET to a link , it doesn’t work, but only on device. In emulator and in brower ( ionic serve ), it’s work. with a search, i found that it’s a CORS problem, but i allow CORS in my back end. I don’t know where is the problem…
I found the answer to my problem after digging around, and I’ll post the answer in case somebody else has the same problem. My node server was listening to the local ip only, so I had to add a second argument of ‘0.0.0.0’ to the http.createServer() function, like this: