问题描述
借助规范跨域策略文件说,你可以把该的crossdomain.xml
通过使用 X-允许交叉域策略
头的根目录以外的文件。究竟如何一去这样做?我想提出一个的crossdomain.xml
文件中的一个子目录(我没有访问根)。这是规范:
我猜你想使用的crossdomain.xml的Flash客户端?事实是,默认情况下,Flash客户端总是试图找到根的文件。作为规范的状态,一切必须在客户端进行设置。我不是一个闪光codeR - 你应该标记这个问题与闪或任何其他客户端是$ C $光盘
。The spec for cross domain policy files says that you can put a the crossdomain.xml
file outside the root through the use of a X-Permitted-Cross-Domain-Policies
header. How exactly does one go about doing that? I want to put a crossdomain.xml
file in a sub directory (I don't have access to the root). This is from page 11 of the spec:
I'm guessing you want to use the crossdomain.xml for a Flash client?fact is, by default a flash client always tries to find that file in the root. as the specs state, everything else must be set in the client. I'm not a flash coder - you should tag this question with "flash" or whatever else the client is coded in.
这篇关于如何添加的crossdomain.xml的子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!