我如何解决Flash安全性错误#2048 [英] How can I fix a Flash security error #2048

查看:177
本文介绍了我如何解决Flash安全性错误#2048的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在闪存#2048有一个错误。我所能找到的一切都指出了这个事实,这是一个安全防范措施,因为这些文件不在同一个域中。

我们有一个运行在Rackspace云服务器上的网站,现在正试图使用​​CDN云文件来加速我们在我们网站上使用的产品轮换工具。您可以查看当前的工作工具,使用我们的服务器上的文件以及我切换链接来反映云文件而不是本地文件的演示。 (编辑:我已经删除链接演示网站,因为他们已不再相关。)

我找到的解决方案似乎是添加几行代码根据这个stackoverflow问题

从上面的Stackoverflow问题的答案,我实现了以下代码:

  allowcriptaccess =always
allownetworking =all

在我们的模板文件中。

 < site-control allowed-cross-domain-policies =全部关注/> 

我相信这是一个crossdomain.xml文件。我创建了这个文件并将其放在根文件夹中,并使用了此文档页面中的代码

 <?xml version =1.0?> 
<!DOCTYPE跨域策略系统http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">

< cross-domain-policy>
< allow-http-request-headers-from domain =*headers =*/>
< / cross-domain-policy>

毕竟我仍然收到错误#2048.我真的很感谢您提供的任何帮助,谢谢!

解决方案

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

crossdomain.xml文件属于提供数据的服务器。因此,如果您的Flash应用程序在您的服务器上运行,并尝试从其他域下载数据...该域需要提供crossdomain.xml文件。



根据你在你链接到的另一个StackOverflow问题的评论,这听起来像你把crossdomain.xml放在你自己的服务器上。通过这样做,你可以说在其他网站上托管的Flash应用程序可以从你的网站获取数据。相反,您需要在CDN网站上放置crossdomain.xml文件,授权其他域中的Flash应用程序(如您自己的)访问CDN上的数据。


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.

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. )

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

From the Stackoverflow 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 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!

解决方案

Thomas, on which server did you put the 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.

Based on your comment in the other StackOverflow 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.

这篇关于我如何解决Flash安全性错误#2048的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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