Flex: Security Error Accessing URL Part 2

I previously encountered this error when I was working only within my own development box (laptop actually) and I basically worked around the error. But now, I need my Flex Web Service client separate from my Web Service. when you are in this situation, you need to have a crossdomain.xml file in your host’s root directory:

<cross-domain-policy>
<site-control permitted-cross-domain-policies=”master-only”/>
<allow-access-from domain=”yourdomain”/>
<allow-http-request-headers-from domain=”yourdomain” headers=”*”/>
</cross-domain-policy>

And if the host is a secure/HTTPS server, you just need to add the secure attribute:

<cross-domain-policy>
<site-control permitted-cross-domain-policies=”master-only”/>
<allow-access-from domain=”yourdomain” secure=”false”/>
<allow-http-request-headers-from domain=”yourdomain” headers=”*” secure=”false”/>
</cross-domain-policy>