title: angularjs Error: Access to restricted URI denied
body: <p>I am using $http.get to consume a REST api from IBM bluemix. However when I run this code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var url = "https://username:pass@cdeservice.mybluemix.net"
  var count = '/api/v1/messages/count';
  searchQuery = 'hi'
  $http.get(url + count + "?q=" + searchQuery)
         .then(onResponse, onError);</code></pre>
  </div>
  </div>
  </p>
  
  <p>I receive error 1012 - Error: Access to restricted URI denied. I am running on a server (access from localhost:6000) and I have even tried deploying and receiving the same error. Any solutions for this?</p>