Skip to main content
Participant
January 19, 2012
Question

Local-with-networking sandbox. (Security Sandbox Violation)

  • January 19, 2012
  • 1 reply
  • 928 views

Hi

I am developing an application for Android devices.


where I am facing Security Sandbox Violation issue. not getting any proper solution plz help..


I have main.swf (included in apk) on device and main.swf download abc.swf from server and save it to device(app-storage).


after downloaded, main.swf loads abc.swf in it, abc.swf need to connect to internet to retrieves data from www.example.com

main.swf is not allowing abc.swf to connect with internet and giving this error..


*** Security Sandbox Violation ***

Connection to http://www.example.com/data.xml halted - not permitted from app-storage://abc.swf

-- Untrusted local SWFs may not contact the Internet.

SecurityError: Error #2028: Local-with-filesystem SWF file app-storage:/abc.swf cannot access Internet URL http://www.example.com/data.xml.



I have keep crossdomain.xml on www.example.com/crossdomain.xml

the xml has these parameter..

<cross-domain-policy>

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

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

</cross-domain-policy>

plz help what i am doing wrong??

This topic has been closed for replies.

1 reply

January 19, 2012

Is it needed for the abc.swf to be stored localy first and then loaded? because this causes it to be in  Local-with-filesystem sandbox. Can you try loading the swf directly from example.com so that its in local-with-networking sandbox and then load other things from abc.swf.

FlashyJatAuthor
Participant
January 19, 2012

Thank you for replying

Yes this is necessary to download the abc.swf to local, because this app can work offline.

I have tried to load abc.swf direct from server. It’s working properly.

But as per requirement we need to save them on locally.


what should I do? plz suggest any better way.

thanks