title: How to enable CORS in jBoss
body: <p>I am developing an HTML5 application that has to obtain some values from legacy web-services (Jax-Ws) so I use <a href="https://github.com/doedje/jquery.soap" rel="nofollow">jQuery.soap</a> to query these web services to obtain responses. I have tried the correctness of my requests with SOAP UI, and they work properly.</p>
  
  <p>From my HTML5 client I cannot receive SOAP responses from the server, because in the response there is not the <em>Allow-Control-Allow-Origin</em> header set to *. So, the origin of the request is recognized as not allowed, and the response of the server is an error response. </p>
  
  <p>The message of the error, debugging my HTML5 project with Firebug + Firefox, is: </p>
  
  <p><em>Locked cross- origin request: the criterion at the origin does not allow the reading of the remote resource. You can solve the problem by moving the resource to the same domain or activating CORS.</em></p>
  
  <p>How can I enable CORS in jBoss?</p>