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 ).
<allow-access-from domain="*.domain.com" />
For more details on crossdomain policry refer this specification: http://adf.ly/Y2QDX
For more secure, you can specify the domain you want to allow access in allow-access-from e.g.
<?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>
<allow-access-from domain="*.domain.com" />
For more details on crossdomain policry refer this specification: http://adf.ly/Y2QDX
Comments
Post a Comment