Hello! So I am tinkering with AngularJS and Jenkins.
In an attempt to call the Jenkins API from AngularJS, I got the Cross Origin policy block. I installed the "Secure Requester Whitelist Plugin <https://wiki.jenkins-ci.org/display/JENKINS/Secure+Requester+Whitelist+Plugin>" from the plugin list in Jenkins and added the following to it: localhost 127.0.0.1 and the domain my laptop is on. I then tried to make the following call from AngularJS to the Jenkins API (replacing Jenkins url with localhost, 127.0.0.1 and even my fully qualified DNS for my laptop. app.controller("MainController", function($scope, $http) { $http.get("http://jenkins url:8081/queue/api/json").success(function(data) { $scope.queue = data; }); }); I still get the CORS error attempting to make this call. Any advice? -Ed -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
