I'm trying to communicate with an Apache web server in a cross-domain way.
I have a clientaccesspolicy.xml file set up on the root of the domain and it is successfully retrieved by the Silverlight client when attempting to make a GET request to a Java servlet that's been set up.
The specifics are something like this:
URL to access: dev.corp.companyname.com/servlets/targetServlet
The clientaccesspolicy.xml file looks like this:
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers ="*">
<domain uri ="http://*" />
</allow-from >
<grant-to >
<resource path ="servlets/targetServlet" include-subpaths ="false"/>
</grant-to>
</policy >
</cross-domain-access>
</access-policy>
I'm getting the common SecurityException with "Security Error" as it's message. I assume this means that the clientaccesspolicy.xml file is set up correctly.
So here are the questions: Should
<domain uri ="http://*" />
be
<domain uri ="*" />
Also. Should
<resource path ="servlets/targetServlet" include-subpaths ="false"/>
be
<resource path ="/servlets/targetServlet" include-subpaths ="false"/>