How to fix Flash Security Error # 2048

I have an error in flash # 2048. All I can find indicates that this is a security caveat as the files are not on the same domain.

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

The solutions I've found seem to add a few lines of code as per StackOverflow question .

From the answer to the Stackoverflow question above the answer, I ran the following code:

allowscriptaccess = "always"
allownetworking = "all"

      

As described in our template file. The first part of the revised list worries me.

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

      

Which I believe in the crossdomain.xml file. I created this file and placed it in the root folder and used the 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 this, I still get error # 2048. I would really appreciate any help you can provide, thanks!

+3


source to share


1 answer


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

The crossdomain.xml file belongs to the server transmitting the data. So if your Flash application is running on your servers and is trying to load data from some other domain ... for the other domain to provide a crossdomain.xml file.



Based on your comment in another StackOverflow question that you linked to, it looks like you are putting crossdomain.xml on your own server. By doing this, you are saying that it is ok for a Flash application hosted on other websites to receive data from your website. Instead, you need to place a crossdomain.xml file on a CDN site that allows Flash applications on other domains (for example, your own) to access data on the CDN.

+3


source







All Articles