Answer the question
In order to leave comments, you need to log in
How to make a cross domain http request in Cordova/Ionic Framework on Android?
How to make a cross domain http request in Cordova/Ionic Framework on Android?
I tried to set up proxying in ionic.project, it doesn't help. This is how I make the request:
$http.get('http://localhost:8100/getnews/?hashcode=' + hashcode + '').then(function (resp) {
...
}, function (err) {
...
}
{
"name": "...",
"app_id": "...",
"proxies": [
{
"path": "/getnews",
"proxyUrl": "http://yukigaru.pythonanywhere.com/getnews/"
}
]
}
Answer the question
In order to leave comments, you need to log in
Where are you trying it, on the device or in the browser? ionic serve with --live?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question