crossdomain.xml怎么用?

crossdomain.xml是adobe搞的,为了让flash跨域访问文件。

该配置文件放于服务器端的根目录下面。来设置让哪些域名下面的swf文件能够访问我服务器上的内容。

比如:我的服务器上有个图片:http://www.haohtml.com/img.gif
sina上面有个swf需要访问我的这个文件。
配置文件该这样写:

Xml代 码
  1. <?xml version=“1.0”?>
  2. <!DOCTYPE cross-domain-policy SYSTEM “http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd”>
  3. <cross-domain-policy>
  4. <allow-access-from domain=“*.haohtml.com” />
  5. </cross-domain-policy>
<?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="*.sina.com" />
</cross-domain-policy>

该文件放在http://www.haohtml.com/crossdomain.xml

7 thoughts on “crossdomain.xml怎么用?

  1. Pingback: Beauty Suppliers

  2. Pingback: 안전바카라

  3. Pingback: fake sell rolex submariner

  4. Pingback: fake panerai

  5. Pingback: buy rolex replica

  6. Pingback: asigo system review

  7. Pingback: DNS Lookup

Comments are closed.