working on AngularJs application and calling the Open Weather API through $resource, facing the following issue.
Blocked loading resource from url not allowed by $sceDelegate policy. URL: http://samples.openweathermap.org/data/2.5/forecast
Code
$scope.weatherAPI = $resource('http://samples.openweathermap.org/data/2.5/forecast',
{ callback: 'JSON_CALLBACK' },
{ get: { method: 'JSONP' } }
);
$scope.weatherResul = $scope.weatherAPI.get({ q: $scope.srchCityName
Any Idea, how to fix?