[AS3] Crossdomain.xml file syntax


  1. A SWF file on server1.com can load files from server2.com only if there is a crossdomain.xml file on server2.com that lists all the servers that may load files from it, and the list contains server1.com.

    Synatx  for crossdomain.xml file is as follows:

    <?xml version="1.0"?>   
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <site-control permitted-cross-domain-policies="all"/>
        <allow-access-from domain="*" to-ports="*" secure="false" />
        <allow-http-request-headers-from domain="*" headers="*" secure="false" />
    </cross-domain-policy>


    Place this file in the root folder to access content from 2 different domains.

Comments

Popular posts from this blog

[SVN] Simple way to do code review

How to Choose a Technology Stack for Web Application Development

Setting ESLint on a React Typescript project