WCF For Silverlight跨域策略

在WCF的根目录下添加跨域文件

<?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-access>
</access-policy>
posted @ 2015-11-20 09:04  hornet_team  阅读(232)  评论(0编辑  收藏  举报