I'm trying to get headlines from yahoo finance and the following code doesn't seem to work. It goes straight to the error handler. I tried a few other URL's and they don't seem to work either. I tested this code within the android emulator with ionic. What am I doing wrong?
$http.get("http://feeds.finance.yahoo.com/rss/2.0/headline?s=GOOG®ion=US&lang=en-US")
.success(function(data) {
$log.log(data);
})
.error(function(data) {
$log.log("ERROR: " + data);
});
UPDATE:
Read through Mitch's links, you'll very likely find a solution there like I did. For me I had to use the --disable-web-security
when starting chromium. Apparently the allow origin plugin isn't enough for these types of http request's.
Also, if you're having trouble in the emulator don't use live reload. That seems to cause a problem with http requests.