Silverlight 跨域调用策略

默然Silverlight不支持跨域访问资源,需要在对应Web地址根目录部署策略文件

   Sliverlight 跨域策略(clientaccesspolicy.xml)

   Flash 跨域策略(crossdomoain.xml)的子集

 

clientaccesspolicy.xml

<?xml version="1.0" encoding="utf-8"?>

<access-policy>

    <cross-domain-access>

        <policy>

            <allow-from http-request-header="*">

                <domain uri="*"/>

            </allow-from>

            <grant-to>

                <resource path="/" include-subpaths="true"/>

            </grant-to>

        </policy>

    </cross-domain-access>

</access-policy>

 


你可能感兴趣的:(silverlight)