Solving Cross Domain Policy Restriction

For most of the web developers as beginners to video streaming applications using flash players, they come to this point of error where videos don't play. To solve this issue paste the following in crossdomain.xml file and upload it to the root of the public directory of the website ( i.e. should be available at *.domain.com/crossdomain.xml ).

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
For more secure, you can specify the domain you want to allow access in allow-access-from e.g.
<allow-access-from domain="*.domain.com" />

For more details on crossdomain policry refer this specification: http://adf.ly/Y2QDX

Comments

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud