什么是crossdomain.xml文件? [英] What is crossdomain.xml file?

查看:386
本文介绍了什么是crossdomain.xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我希望我能知道从哪里...

Actually I wish I knew where to start from...

我已经嵌入到第三方SWF图片库控制,我的一个个人网站。

I have embedded an third party SWF image gallery control, in an personal website of mine.

该SWF是XML驱动的。我加载XML文件上飞如下....

The SWF is XML driven. I load the XML file on the fly as follows....

  var flashvars = { xmlPath: "http://www.example.com/xml.aspx" };
                var params = { allowFullScreen: "true", wmode: "transparent", allowScriptAccess: "always"};
                var attributes = {};
                swfobject.embedSWF("main.swf", "gallery", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

问题是,如预期的页面没有工作。其实它的工作只是在Firefox,而不是在Chrome或即

The problem is that the page did not work as expected. Actually it worked only in Firefox, not in Chrome or I.E.

检查与小提琴手的要求后,我发现该文件的crossdomain.xml没有被发现。因此,计算器帮我找到一个样......

After checking the requests with fiddler, i found that the file crossdomain.xml was not found. So, stackoverflow helped me finding a sample...

<?xml version="1.0" ?>
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*"/>
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

添加crossdomain.xml的网页现在工作在Firefox和I.E.后在Chrome中我仍然有一个问题。

After adding the crossdomain.xml the webpage now works in Firefox AND I.E. In Chrome i still have a problem.

所以这里有几个问题...

So here are a couple of questions...

1)什么是crossdomain.xml的?

1) What is the crossdomain.xml?

2)如何使在Chrome中我的网页的工作呢?

2) How can i make my webpage work in Chrome too?

推荐答案

一个跨域策略文件授予Web客户端,如Adobe的Flash Player,Adobe Reader,请等许可权来处理数据的XML文档跨多个域。从Adobe网站 http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html采取

"A cross-domain policy file is an XML document that grants a web client—such as Adobe Flash Player, Adobe Reader, etc.—permission to handle data across multiple domains.". Taken from Adobe website http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html.

编辑:回答问题2:<一href=\"http://stackoverflow.com/questions/3519035/flex-crossdomain-xml-not-working-correctly-in-chrome-firefox\">Flex crossdomain.xml的无法在Chrome / Firefox的正常工作?。安装Adobe Flash Player对于开发商来说,提琴手(或类似),这些工具应该让你的生活更轻松。另请阅读 http://kb2.adobe.com/cps/839/cpsid_83950.html

Answer to question 2: Flex crossdomain.xml not working correctly in Chrome/Firefox?. Install Adobe Flash Player for developers, Fiddler (or similar), these tools should make your life easier. Also read http://kb2.adobe.com/cps/839/cpsid_83950.html.

这篇关于什么是crossdomain.xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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