问题描述
我试图在我所有的域名和子域名上使用flash脚本(plupload)。
swf文件是放置在我的
static.mydomain.com/path/to/file.swf
我想在我的其他域和子域使用此文件,如:
www.mydomain.com
或asubdomain.mydomain.com
我也想在另一个域名扩展名上使用相同的域名,比如:
mydomain.net
但我没有使用它。
如果我把swf文件放在我想要使用它的子域中,它可以正常工作。
所以我认为我需要放置一个跨域。 XML的地方,但我不是没有在哪里?
只在我的静态子域名?
在我的每个子域名上?
感谢您的帮助
<?xml version =1.0?>
<!DOCTYPE跨域策略系统http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">
<跨网域政策>
< allow-http-request-headers-from domain =*headers =*secure =false/>
< / cross-domain-policy>
如果您想要一个松散的XML,则将 *
行,逐个放置子域,或使用诸如 *。mydomain.com
等简写形式。 p>
取自:
。
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.comor asubdomain.mydomain.comI 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
<?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:
.
这篇关于Flash和多个域/子域=>的crossdomain.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!