How to display packages in WEB?
Sunday, February 14, 2016 at 03:21pm` var apiKey = "nulldev88";
$http({
url: "https://sandbox.esignlive.com/api/packages",
method: "GET",
headers: {'Content-Type':'application/json',"Authorization" : apiKey }
}).success(function (data, status, headers, config) {
console.log(data);
}).error(function (data, status, headers, config) {
console.log("error");
});
above is my code inside ANGULARJS
[. .] please help me, i want to display the data inside my website, how can i achieve it? "apiKey" is just a sample, i have my real apiKey but im getting this response in the console:
OPTIONS https://sandbox.esignlive.com/api/packages
XMLHttpRequest cannot load https://sandbox.esignlive.com/api/packages. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://newbnb' is therefore not allowed access. The response had HTTP status code 401.
Reply to: How to display packages in WEB?
Monday, February 15, 2016 at 05:51am'Authorization' : 'Basic ' + apiKey
.