Saturday, February 12, 2011

Can someone post a well formed crossdomain.xml sample?

I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm wondering of someone can paste me a copy of one that they know works. Having some trouble finding a recent sample on Adobe's site.

  • This is what I've been using for development:

    <?xml version="1.0" ?>
    <cross-domain-policy>
    <allow-access-from domain="*" />
    </cross-domain-policy>
    

    This is a very liberal approach, but is fine for my application.

  • http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

  • If you're using webservices, you'll also need the 'allow-http-request-headers-from' element. Here's our default, development, 'allow everything' policy.

    <?xml version="1.0" ?>
    <cross-domain-policy>
      <site-control permitted-cross-domain-policies="master-only"/>
      <allow-access-from domain="*"/>
      <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>
    
    From ThePants

0 comments:

Post a Comment