title: Response Object coming null for get request for rest api
body: <p>I am trying to implement nexmoverify REST API for OTP implementation but response object comig null.I checked in Postman and able to get stringify object from of response object. </p>
  
  <pre><code>var app = angular.module('angularjs-starter', []);
  app.config(['$httpProvider', function($httpProvider) {
     $httpProvider.defaults.useXDomain = true;
     delete $httpProvider.defaults.headers.common['X-Requested-With'];
  }
  ]);
  
  app.controller('MainCtrl', function($scope, $http) {
  
  
     $scope.addNewChoice = function () {
        console.log('aaaa');
        $scope.res=$http.get("https://api.nexmo.com/verify/json?api_key=56a9b1af&amp;api_secret=XXXXXX&amp;number=919650298011&amp;brand=stayuncle").
           success(function (response) {
              $scope.res = response.data;
  
  
           }).
        error(function (response){
              console.log(response);
  
              $scope.res = response.data;
  
  
           });
  
  
     };
  </code></pre>
  
  <p>Code Flow: <code>code flow coming to error() section and then printing null in web console.</code></p>
  
  <p>Error : </p>
  
  <pre><code>Response object coming null as well as getting this error in web console 
  
  XMLHttpRequest cannot load https://api.nexmo.com/verify/json?api_key=56X9b1af&amp;api_secret=d3XXXX&amp;number=91XX50298011&amp;brand=stayuncle. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
  </code></pre>
  
  <p>Can someone help me to solve this problem.</p>