tobyandlauren.id.au

BLOG PROJECTS FAMILY TREE
Subscribe by RSS feed

Flash - Loading data from HTTPS server

The sitch:

You have a Flash SWF file on server http://www.somewhere.com. You are trying to load data with a Loader or URLLoader from an SSL server https://www.anotherplace.com. You have set up your crossdomain.xml file on anotherplace.com to allow-access-from domain www.somewhere.com.

The bitch:

You get a sandbox security error and it fails to load. But your crossdomain.xml looks fine. What’s wrong?

The solution:

Simply add secure = 'false' to the allow-access-from element pointing to the non-SSL http domain. So it’d be something like <allow-access-from domain = 'www.somewhere.com' secure = 'false' />