I'm hosting a clientaccesspolicy.xml for a locally hosted Silverlight component that communicates using TCP connections. It works but I'm trying to tighten the permitted domains and I can't find documentation to indicate how to specify these restrictions for TCP connections.
Is this possible, and if it is how should I be specifying these restrictions?
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<socket-resource port="4502-4534" protocol="tcp" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
Basics of the Security Policy System
I would think that narrowing the range of ports would would limit the available tcp sockets. They show an Example Policy File for Sockets here
Citing the following documentation from MS
To use a clientaccesspolicy.xml file to allow cross-domain access
Domain example
This policy file accepts connections only from the domains and scheme specified. This policy file specifies specific request headers and specifies resources that can be accessed.
For the above policy, the Silverlight HTTP applications listed below are allowed to have access to the listed ports:
For the above policy, the Silverlight applications listed below are not allowed to have access to the listed ports:
The following HTTP request headers can be sent (in addition to the Content-Type header that is always allowed):
Resource Network Security Access Restrictions in Silverlight