What is the problem?
CORS is a W3C specification and is broadly implemented by all new browsers types. Creating CORS requests on client side mostly means to add an
Origin URL as HTTP Header. If the remote server was configured to allow the client’s Origin accessing the server’s resources it returns an OK, otherwise the same-origin-policy applies.
Apache Tomcat since version 7+ provides a CORS filter which can easily configured in a web application’s web.xml. See Tomcat’s filter documentation for a detailed description. There are plenty of other servers which can be configured to handle CORS.
1. Cross-Origin Resources Sharing, https://wiki.52north.org/bin/view/Documentation/CrossOriginResourceSharing
3. How to enable Cross domain requests on JAX-RS web services?