Skip navigation
Currently Being Moderated

Security sandbox violation

Aug 15, 2012 11:03 PM

Hi,

 

       I have an application which upload/download files to/from box.net. the application works fine when not deployed on server but when I deploy it on Google App Engine the following error is encountered .

 

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://somexyz.appspot.com/xyzsample.swf cannot load data from http://box.net/api/1.0/download/abcdef/123456.

 

I have included the below lines of code in as3

  Security.allowDomain("*");

 

and placed crossdomain.xml in app root folder (Google App Engine) and can access the file using http://somexyz.appspot.com/crossdomain.xml

 

crossdomain.xml contains the below lines

 

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

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

   <allow-access-from domain="*" to-ports="*"/>

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

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

</cross-domain-policy>

 

I am also getting the same issue when I tried using tomcat 

 

Please help me to figure out a solution .

 

Thanks in advance.

Srikanth Angeri.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points