title: angular.js chrome Access-Control-Allow-Origin
body: <p>I'm trying to use an Angular.js service to get a JSON from my REST service made with Jersey/Spring.</p>
  
  <p>When i'm using firefox, it works fine, but when i go to Chrome i got the message:</p>
  
  <pre><code>XMLHttpRequest cannot load http://localhost:8080/VirtualLawyerPj/services/timeoftheday/asjson/tue. Origin http://localhost:8090 is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>Here's my service code:</p>
  
  <pre><code>angular.module('myAppServices', ['ngResource']).
  factory('Time', function($resource){
      return $resource('http://localhost:port/VirtualLawyerPj/services/timeoftheday/asjson/tue',{port:":8080"}, {
          query: {method:'GET', params:{}, isArray:false}
      });
  });
  </code></pre>
  
  <p>Someone had the same problem? 
  How did you got this working?</p>
  
  <p>Thanks.</p>