• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Security sandbox violation

Community Beginner ,
Sep 25, 2011 Sep 25, 2011

Copy link to clipboard

Copied

Hi there

I have just been testing new Flash Builder (4.5 for PHP). I have developed small application and I have just tried to upload it online.

Lets say it is located at following URL:

http://domain_name.co.uk/ApplicationNameFlex.html

At the moment I am getting following error:

Send failed

Channel.Security.Error error Error #2048: Security sandbox violation:

http://domain_name.co.uk/ApplicationNameFlex.swf cannot load data from http://localhost/ApplicationNamePHP/public/gateway.php. url: 'http://localhost/ApplicationNamePHP/public/gateway.php'

I am totally at lost here. Why my application is trying to reach local resources (gateway.php)? Do I need to export release build in a different way in FB4.5 for PHP than in FB4.0?

BTW. amf_config.ini I am using looks ok to me (its similiar to config files I have been using with other projects deployed using FB4.0)

Can anyone shed some light how to solve this issue?

Regards

Michael

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 26, 2011 Sep 26, 2011

Copy link to clipboard

Copied

I have just found some blog suggesting that compiling Flex application with Network Monitor on might cause Flex to try and call some local resources (even though application has been deployed on remote server). Sadly it was not a solution for my problem. It gave me an idea though, I should probably disable/remove settings of my debugger. Will attempt that later this evening (after work) and see how that will work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 27, 2011 Sep 27, 2011

Copy link to clipboard

Copied

Everytime that I had this error it was related with crossdomain...

Do you have any crossdomain.xml file at root folder of your Web Server?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 27, 2011 Sep 27, 2011

Copy link to clipboard

Copied

LATEST

Rick

Thanks for the tip. Yes I have crossdomain.xml file in root folder and my other projects are working fine. In that instance it probably has something to do with local configuration of debugger (or maybe some other feature). Note that system is trying to call my local gateway.php (this reference must have been compiled inside swf file during export of release build). Sandbox violation error is just a obvious consequence of that quirk.

Anyway, I have re-created my project in good old FB4.0 (if you will forgive its short-comings) and it works fine. I think I will wait with upgrading to FB4.5 for PHP. Its not that user friendly (it took me quite some time to setup PHP debugger in my WAMP environment) and its not that stable either (have had issues with refreshing of my PHP class).

Regards

Michael

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines