Flash and multiple domain / sub domains => crossdomain.xml?

余生颓废 提交于 2019-12-12 03:57:50

问题


I am trying to use a flash script (plupload) on all my domains and sub-domains hosting it on my static sub-domain.

The swf file is placed on my static.mydomain.com/path/to/file.swf

And I want to use this file on my others domains and subdomain like : www.mydomain.com or asubdomain.mydomain.com I also would like to use it on another domain extension for the same domain name, like : mydomain.net

But I fail to use it. And if I put the swf file on my subdomain where I want to use it, it works fine.

So I think i need to place a crossdomain.xml somewhere but I don't no where ? Only on my static subdomain ? On each of my subdomains ?

Thanks for the help


回答1:


<?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>

if you want a 'less-loose' XML, duplicate either one of the * lines, putting your sub-domain(s) one by one, or using a shorthand such as *.mydomain.com.

taken from:

  • Adobe Crossdomain XML Policy Explained  ( www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/xdomain.html )
  • Example Above Taken From Here  ( icompile.eladkarako.com/loose-cross-domain-xml-policy )

.



来源:https://stackoverflow.com/questions/12989502/flash-and-multiple-domain-sub-domains-crossdomain-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!