Lighttpd, Flash and Crossdomain.xml

LightyA few weeks back I ran into a rather odd situation when trying to load an xml file via Actionscript across multiple domains. No matter what I did, it would not load! Typical way to resolve this is to put a crossdomain.xml granting access to the swf host location right? Well, if you’re planning on using Lighty, a good thing to keep in mind when installing is to set the proper mimetype.assign options in the configuration file. If you do not set this it will default to “application/octet-stream” which for some reason Flash (actionscript) does NOT like and will ignore crossdomain.xml. I know it’s kind of a newbie mistake but I’m sure one of you will come across the same issue when using it for the first time like I did.

, , , ,