Flash 和多个域/子域 =>跨域.xml? [英] Flash and multiple domain / sub domains => crossdomain.xml?

查看:36
本文介绍了Flash 和多个域/子域 =>跨域.xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的所有域和在我的静态子域上托管它的子域上使用 Flash 脚本 (plupload).

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

swf 文件放在我的static.mydomain.com/path/to/file.swf

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

我想在我的其他域和子域上使用此文件,例如:www.mydomain.com或 asubdomain.mydomain.com我还想在同一个域名的另一个域扩展上使用它,例如:mydomain.net

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

但是我没有使用它.如果我将 swf 文件放在我想要使用的子域中,它就可以正常工作.

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.

所以我想我需要在某处放置一个 crossdomain.xml 但我不知道在哪里?仅在我的静态子域上?在我的每个子域上?

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 ?

感谢您的帮助

推荐答案

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

如果你想要一个不太松散"的 XML,复制 * 行之一,一个一个地放置你的子域,或者使用诸如 的速记*.mydomain.com.

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.

取自:

.

这篇关于Flash 和多个域/子域 =>跨域.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆