Flash not loading data from external domains

Are you having issues loading files from external domains to be used on a separate domain? Adobe changed the way flash works about two versions ago and introduced stricter security settings, specifically the use of crossdomain.xml files. Unlike AJAX XHR requests which allow no cross domain communications, flash allows the use of this security file which blacklists and whitelists external domains.

Long story short, if you would like to load all external files and don’t care about security with your flash document (basically make flash act the way it used to), put this file in the root of your domain and name it crossdomain.xml (e.g. if you flash document is located at www.example.com/folder/test.swf, this document will need to be accessible to the browser at www.example.com/crossdomain.xml).

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

This is by no means an extensive flash security tutorial, but this information will get your flash files running. If you run a personal website with a music player, this is just fine. But, if you’re the application developer for a social network, you’ll want something a little more secure.

One Response to “Flash not loading data from external domains”

  1. Henrique Palazzo

    Thanks a lot!

    Reply

Comment

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>