title: AngularJS $http.post() to another port at the same machine
body: <p>I have an AngularJS app hosted in nginx server at localhost and Rest service hosted in Weblogic at localhost:7001.</p>
  
  <p>I'm trying to do this post inside of Angular part:</p>
  
  <pre><code>$http.post('localhost:7001/testApp/user/login', { username: username, password: password })
              .success(function (response) {
                  callback(response);
  });
  </code></pre>
  
  <p>And this is the error I'm getting: </p>
  
  <pre><code>XMLHttpRequest cannot load localhost:7001/testApp/user/login. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
  </code></pre>