ASP.NET webservice cross domain

create crossdomain.xml at root

like this

C:\Inetpub\wwwroot\ggyy\crossdomain.xml


the file

-------------------------------------------------------------------------------------

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="www.ggyy.com"/>
<allow-http-request-headers-from domain="www.ggyy.com" headers="*"/>
</cross-domain-policy>

-------------------------------------------------------------------------------------

沒有留言: