Cross Domain security error in Silverlight?

后端 未结 3 1957
囚心锁ツ
囚心锁ツ 2021-01-16 02:48

I\'m trying to read a feed from Yahoo Pipes into a Silverlight Application. I keep getting a SecurityException, which sounds like a cross domain policy problem, but Yahoo pi

相关标签:
3条回答
  • 2021-01-16 02:51

    The policy file in place is:

    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> 
    <cross-domain-policy> 
      <site-control permitted-cross-domain-policies="master-only" /> 
      <allow-access-from domain="*" /> 
    </cross-domain-policy>
    

    There is a current problem that Silverlight does not work with the entire Flash Cross Domain Policy file format...I would expect that the site-control element is breaking it.

    0 讨论(0)
  • 2021-01-16 02:54

    The crossdomain.xml policy file at http://pipes.yahooapis.com/crossdomain.xml specifies only secure (https:) requests in the allow-access-from element. See the documentation about the format here:

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <site-control permitted-cross-domain-policies="master-only" />
      <allow-access-from domain="*" secure="true" />
    </cross-domain-policy>
    
    0 讨论(0)
  • 2021-01-16 02:56

    There is no Client Access policy file at http://pipes.yahoo.com/crossdomain.xml or http://pipes.yahoo.com/clientaccesspolicy.xml

    Therefore the SecurityException is correct behavior.

    What is the exact URL that you are trying to access?

    0 讨论(0)
提交回复
热议问题