Cross-domain Policy File Specification


cross-domain policy file is an XML document that grants a web client such as Adobe Flash Player, Adobe Reader, etc. permission to handle data across multiple domains. When a client hosts content from a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain would need to host a cross-domain policy file that grants access to the source domain, allowing the client to continue with the transaction. Policy files grant read access to data, permit a client to include custom headers in cross-domain requests, and are also used with sockets to grant permissions for socket-based connections.

Sample Case 1…

<?xml version="1.0" ?>
<cross-domain-policy>
     <allow-access-from domain="*" />
</cross-domain-policy>

here the allow-access-from element specifies that content from '*' means any requesting domain can access any data within the target domain

Sample Case 2….

<?xml version="1.0" ?>
<cross-domain-policy>
     <allow-access-from domain="*.example.com"/>
</cross-domain-policy>

here the allow-access-from element specifies that content from the example.com requesting domain can access any data within the target domain

For more details http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

Comments

Popular posts from this blog

Some Amazing Lines...!!!!!

Top 20 Motivational Quotes

Vodafone GPRS/2G Settings for Android Based Phone