0

Script:

var mainApp = angular.module("mainApp", []);

mainApp.controller("myController", function($scope, $http) {

    $http.get('https://172.29.7.37:8443/SpringRestPRD/rest/l1values').success(function(response) {
        $scope.abc = response.L1Values;
    });

});

Markup:

<tr ng-repeat="a in abc">
    <td> {{a.Registration}}</td>
    <td> {{a.Cancellation Due to Default}}</td>
    <td> {{a.Transfers}}</td>
</tr>

Nothing is showing up in my JSP page and I am getting this error:

"XMLHttpRequest cannot load https://172.29.7.37:8443/SpringRestPRD/rest/l1values. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access."

Animesh
  • 4,926
  • 14
  • 68
  • 110
Aman
  • 1
  • 1

0 Answers0