title: CORS on EC2 TOMCAT 7
body: <p>I am trying to do an ajax call from the ad client (js) to Ec2 Tomcat7.</p>
  
  <p>I follow the steps here to enable CORS on tomcat7.</p>
  
  <p><a href="http://software.dzhuvinov.com/cors-filter-installation.html" rel="nofollow">http://software.dzhuvinov.com/cors-filter-installation.html</a></p>
  
  <p>it gives me </p>
  
  <p>XMLHttpRequest cannot load <a href="http://ec2-122-248-194-3.ap-southeast-1.compute.amazonaws.com:8080/Cocacard/FrontServlet" rel="nofollow">http://ec2-122-248-194-3.ap-southeast-1.compute.amazonaws.com:8080/Cocacard/FrontServlet</a>. Origin "http://192.168.2.3" is not allowed by Access-Control-Allow-Origin.</p>
  
  <p>I also tried in my server side servlet code, </p>
  
  <p>response.setHeader("Access-Control-Allow-Origin", "*");</p>
  
  <p>without luck.</p>
  
  <p>Any one runs into this b4 for ec2 tomcat7?</p>
  
  <p>regards
  hammer</p>