When ordering for a remote server, Flash first needs to check the cross-domain policy file to see if requests from your domain are allowed.
If you have access to the remote server, you can upload a file named crossdomain.xml
to grant your access to the application.
Detailed information on:
Example 1
Policy file to tell servers to allow access to Flash movies hosted on http://www.example.com
:
<?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="www.example.com" />
</cross-domain-policy>
Example 2
Policy file specifying which servers should allow access to Flash movies hosted on http://www.example.com
, written with or without www
:
<?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="www.example.com" />
<allow-access-from domain="example.com" />
</cross-domain-policy>
Example 3
Policy file granting access to the Flash Player, regardless of the subdomain making the request, by means of a wild card *
in the token field > of the sub-domain:
<?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="*.example.com" />
</cross-domain-policy>