I have a web application and im using spring mvc.
I need to allow cross domain scripting (i need that a web service that i externalize can be accessed by javascript).
I wrote a crossdomain.xml and i put it under the WEB-INF folder. This is my crossdomain.xml
<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
I have searched around and saw that the crossdomain.xml should be accessable from this URL:
“localhost:8080/crossdomain.xml“
the thing is that the mvc is rerouting the request to the main controller (with RequestMapping annotation of “/”). How can i overcome this using spring mvc?
Thank you.
There is a special integration between jax rs jersey implementation and spring. all explained in this blog
Jersey Spring integration