Progress® Telerik® Reporting R2 2019

IClientAccessPolicy.GetClientAccessPolicy Method

Returns security policy file required by Silverlight when accessing a cross-domain service.

Namespace:  Telerik.Reporting.Service
Assembly:  Telerik.Reporting.Service (in Telerik.Reporting.Service.dll) Version: 13.1.19.718 R2 2019 SP2

Syntax

Stream GetClientAccessPolicy()

Return Value

Type: Stream
A Stream that contains the clientaccesspolicy.xml

Remarks

If the connection request was from a WebClient or an HTTP class to a cross-domain site, the Silverlight runtime tries to download the security policy file using the HTTP protocol. The Silverlight runtime first tries to download a Silverlight policy file with a name of "clientaccesspolicy.xml" at the root of the requested target domain using the HTTP protocol.

The default implementation of the IClientAccessPolicy interface returns a general policy that policy accepts connections from any domain and allows request headers and specifies resources that can be accessed and includes subpaths of these resources:

clientaccesspolicy.xml
<?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>

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?