How to resolve cross domain requests on tomcat?

I am deploying a web application on two separate domains, the first web application is a sedative service deployed on tomcat 6, the second is static content (html, java script), a java script from the static content domain will call the recovery service. but the same origin policy does not allow this, my question is: how to resolve cross-domain requests to tomcat?

+5
source share
1 answer

If you can focus on modern browsers, I suggest exploring an implementation of Java Cross Resource Resource Sharing, or CORSperhaps this one .

Mozilla CORS FF3.5, . IE , XDomainRequest , cookie, IE.

IE CORS IE 10, .

+3

All Articles