title: Cross domain REST/Jersey web services with CORS
body: <p>I want to make Cross domain REST web services with CORS(Cross-Origin Resource Sharing). I am using Jersey Libraries for making services.</p>
  
  <p>I need to know </p>
  
  <ol>
  <li><p>What code/configuration changes i need to do from server side perspective?</p></li>
  <li><p>How to invoke this services from HTML5/js.</p></li>
  </ol>
  
  <p>Thanks</p>