Organizational Research By

Surprising Reserch Topic

get public flickr feed in angular without cors error


get public flickr feed in angular without cors error  using -'javascript,ajax,angularjs,flickr-api'

I'm trying to bring in a public Flickr feed into my Angular app and I'm getting a cors error. Is there a way to force it as jsonp or what's the best way to do it? My controller is:

app.controller('photoFeed',['$scope','$http',function($scope,$http){
  $http({
        method:'GET',
        url: 'https://api.flickr.com/services/feeds/photos_public.gne?tags=dogs,cute&format=json'
    })
    .then(function(response){
        console.log(response.data);
    },function(response){
        console.log(response.statusText);
    });
   }]);

    
asked Oct 11, 2015 by ashish singh
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...