Silverlight跨域访问wcf

时间:2022-10-06 09:39:05

添加文件名为“clientaccesspolicy.xml”的文件

内容:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
  <policy>
  <allow-from>
  <domain uri="*"/>
  </allow-from>
  <grant-to>
  <resource path="/" include-subpaths="true"/>
  </grant-to>
  </policy>
  </cross-domain-access>
</access-policy>