如何修复一个Flash安全错误#2048 ?

时间:2021-06-28 23:08:07

I have having an error in flash #2048. Everything I can find points to the fact this this is a security precaution as the files are not on the same domain.

我在flash #2048上有一个错误。我能找到的每一件事都表明,这是一种安全预防措施,因为文件不在同一领域。

We have a site running on Rackspace cloud servers, and are just now trying to use cloud files a CDN to speed up a product rotation tool that we use on our site. You can view the current working tool, using the files located on our server as well as my demo where I switched links to reflect the cloud files instead of the local files. ( EDIT: I have removed links to demo site as they are no longer relevant. )

我们有一个运行在Rackspace云服务器上的站点,现在正在尝试使用云文件CDN来加速我们在站点上使用的产品旋转工具。您可以查看当前的工作工具,使用位于我们的服务器上的文件以及我的演示程序,在那里我交换链接以反映云文件而不是本地文件。(编辑:我已经删除了演示站点的链接,因为它们不再相关。)

The solutions I have found are seemed to be adding a few lines of code according to this * question.

我发现的解决方案似乎是根据这个*问题添加了几行代码。

From the * question above's answer I implemented the following code:

在上面的*问题中,我实现了以下代码:

allowscriptaccess = "always"
allownetworking = "all"

As described in our template file. My concern is the first portion of the fix listed.

如我们的模板文件所述。我关心的是列出的第一部分。

<site-control permitted-cross-domain-policies="all"/>

Which I believe goes in a crossdomain.xml file. I created this file and put it in the root folder and used code from this documentation page. I used the following code.

我认为这是一个交叉领域。xml文件。我创建了这个文件,并将它放在根文件夹中,并从这个文档页面中使用代码。我使用了下面的代码。

<?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="master-only"/>
  <allow-access-from domain="*" secure="false" />
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy> 

After all of this I still get the error # 2048. I would really appreciate any help you can provide, thanks!

在所有这些之后,我仍然得到错误# 2048。我非常感谢您能提供的任何帮助,谢谢!

1 个解决方案

#1


3  

Thomas, on which server did you put the crossdomain.xml?

Thomas,你在哪个服务器上放了crossdomain.xml?

The crossdomain.xml file belongs on the server that is supplying the data. So if your Flash app is running on your servers, and it attempts to download data from some other domain ... that other domain needs to supply a crossdomain.xml file.

crossdomain。xml文件属于提供数据的服务器。所以,如果你的Flash应用程序运行在你的服务器上,它试图从其他领域下载数据…其他域需要提供一个交叉域。xml文件。

Based on your comment in the other * question that you linked to, it sounds like you put the crossdomain.xml on your own server. By doing that, you're saying it's ok for Flash app's hosted on other websites to get data from your web site. Instead, you need to put a crossdomain.xml file on the CDN site that authorizes Flash apps in other domains (like your own) to access the data on the CDN.

基于你对另一个*问题的评论,它听起来就像你把交叉域放在了一起。您自己的服务器上的xml。通过这样做,你会说Flash应用程序可以在其他网站上获得你的网站的数据。相反,您需要放置一个交叉域。在CDN站点上的xml文件,它授权其他域中的Flash应用程序(如您自己的)访问CDN上的数据。

#1


3  

Thomas, on which server did you put the crossdomain.xml?

Thomas,你在哪个服务器上放了crossdomain.xml?

The crossdomain.xml file belongs on the server that is supplying the data. So if your Flash app is running on your servers, and it attempts to download data from some other domain ... that other domain needs to supply a crossdomain.xml file.

crossdomain。xml文件属于提供数据的服务器。所以,如果你的Flash应用程序运行在你的服务器上,它试图从其他领域下载数据…其他域需要提供一个交叉域。xml文件。

Based on your comment in the other * question that you linked to, it sounds like you put the crossdomain.xml on your own server. By doing that, you're saying it's ok for Flash app's hosted on other websites to get data from your web site. Instead, you need to put a crossdomain.xml file on the CDN site that authorizes Flash apps in other domains (like your own) to access the data on the CDN.

基于你对另一个*问题的评论,它听起来就像你把交叉域放在了一起。您自己的服务器上的xml。通过这样做,你会说Flash应用程序可以在其他网站上获得你的网站的数据。相反,您需要放置一个交叉域。在CDN站点上的xml文件,它授权其他域中的Flash应用程序(如您自己的)访问CDN上的数据。