3 Replies Latest reply on Sep 27, 2011 12:51 PM by Michael Orzechowski

    Security sandbox violation

    Michael Orzechowski Level 1

      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

        • 1. Re: Security sandbox violation
          Michael Orzechowski Level 1

          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.

          • 2. Re: Security sandbox violation
            zuchetto_rick

            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?

            • 3. Re: Security sandbox violation
              Michael Orzechowski Level 1

              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