Fixing your CrossDomain.xml File
I was working on the next episode of The Flex Show's Fifteen Minutes With Flex and came across an issue I thought was worthy of a blog post.
The episode will talk about XML and as an example I was writing some Flex code to grab the RSS feed from the Flex Show. This was giving me a run time warning in the debugging console. This was the error:
This was my file:
<!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>
I brought up the Adobe Dev center article and read through it. Unfortunately, this was full of background and reasoning and I could not find an easy fix. On page 2 of the article, I found a link to the xsd definition. I parsed through it using my developer brain and was able to cobble together a solution. I added two tags to the crossdomain.xml file, site-control and allow-http-request-headers-from. This removed the debugger warning. Here is the final file:
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
Back to work!




I've tried subscribing to the video shows and loading them on my iPhone. But get an error. Been to busy to research into it. But just wanted to check with you as to whether the video podcast was iPod/iPhone compatible.
The URL in the warning really should go to a KB article which includes a sample file. Not a 6+ page dissertation. I had the same problems with the article as you.
Glad to have helped!