title: use Access-Control-Allow-Origin with Ext.direct and JAVA
body: <p>I am creating a web application using Ext Js and java for connecting them I am using extdirect spring MVC, but as I want to access my java controller methods from Ext Js from different domain I have the following error <code>OPTIONS http://localhost:8080/hospital/ext/router?_dc=1370605013919 Origin http://localhost is not allowed by Access-Control-Allow-Origin.</code>, I search a lot but I could not find how to fix that problem for Ext js. If anyone knows please write me. 
  Thank you beforehand</p>