Silverlight clientaccesspolicy.xml File That Grants Access for Specific Directories to Specific Domains : Policy « Data « Silverlight






Silverlight clientaccesspolicy.xml File That Grants Access for Specific Directories to Specific Domains

 

<?xml version="1.0" encoding="utf-8" ?>
<acces-policy>
  <cross-domain-access>
     <policy>
       <allow-from http-request-headers="X-API-*">
         <domain uri="http://www.myserver.com:8080" />
         <domain uri="http://www.amazon.com" />
         <domain uri="http://www.microsoft.com" />
      </allow-from>
      <grant-to>
        <resource path="/http-apps" include-subpaths="false"/>
      </grant-to>
    </policy>
    <policy>
      <allow-from>
         <domain uri="http://www.myserver.com:8080" />

      </allow-from>
      <grant-to>
        <socket-resource port="4501-4504" protocol="tcp" />
      </grant-to>
    </policy>
  </cross-domain-access>
</acces-policy>

   
  








Related examples in the same category

1.Base client access policy.xml for WebClient or HTTP access
2.More restrictive client access policy
3.Silverlight clientaccesspolicy.xml File That Grants Rights to the Root Path and Subpaths to Everyone