i have asmx web service running on my site and my application works fine. the application requests data from the web service using jQuery AJAX.
now i have another page on another site or domain and in that file i have added an absolute reference to the javascript file which has the jQuery AJAX calls. This does not work. I have been reading that client access policy file and cross domain files should be added. I have added those to the root of the first site as follows:
clientaccesspolicy.xml
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-a
ccess>
crossdomain.xml
<?xml version="1.0" encoding="utf-8" ?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
But this does not work, can someone please help me understanding where i could be going wrong.
thanks in advance.