title: Getting json data from curl in angularJs?
body: <p>I have a <code>cUrl</code> which gives <code>JSON</code> data  I  want to use that curl in angularjs but It's giving me <strong>error</strong></p>
  <blockquote>
  <p>&quot;Error: $sce:insecurl</p>
  <p>Processing of a Resource from Untrusted Source Blocked&quot;</p>
  </blockquote>
  <p><strong>Code:</strong></p>
  <pre><code>var App = angular.module('App', [  ]);
  App.config(['$sceDelegateProvider', function($sceDelegateProvider) {  
      $sceDelegateProvider.resourceUrlWhitelist([
          'self',
          'http://125.99.157.180/suez/dispweigh.php',
      ]);
  }]);
      
  
  App.controller('AboutCtrl', function ($scope, $http, $sce){
      var url = $sce.trustAsResourceUrl('http://125.99.157.180/suez/dispweigh.php');
      $http.get(url)
      .then(function (data) {
           $scope.result = data;
      });
  });
  </code></pre>