problems with crossdomain.xml, silverlight 4

2.3k views Asked by At

For some reason my crossdomain.xml is never accepted by Silverlight and I'm getting the SecurityException everytime. I'm using SL4 and HTTPS. The server is offline to begin with, the first request fails. After 60 seconds, the client again requests for the crossdomain.xml, I return the file, as given below, but I get the security exception. I'm using Fiddler to return the file.

Also interesting is that it works with clientaccesspolicy.xml but that is requested only the first time and all subsequent requests only ask for crossdomain.xml. The file is as below

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from>      
        <domain uri="*"/>
      </allow-from>            
    </policy>
  </cross-domain-access>
</access-policy>
3

There are 3 answers

1
Samvel Siradeghyan On
1
Alexey F On

crossdomain.xml file should have another content:

<?xml version="1.0"?>
<cross-domain-policy>
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
0
brimble2010 On

Try:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from>      
        <domain uri="*"/>
        <domain uri="https://*"/>
      </allow-from>            
    </policy>
  </cross-domain-access>
</access-policy>