1 Reply Latest reply on Feb 23, 2009 3:12 AM by SujitG

    Security sandbox violation

    anjiu Level 1
      I am getting the following error while accessing an invalid url. I know the problem, it is unable to load the crossdomain.xml. Because the url is fake. So its poping up an Flash error window. I want to suppress the Flash window and want to catch the error and show a custom error to the user. How it is possible ?

      Any pointer will be very helpful.
      Thanks

      Error #2044: Unhandled securityError:. text=Error #2170: Security sandbox violation: http://101.22.24.100:8080/webSite/pro.swf cannot send HTTP headers to http://101.22.24.106:8080/home.
      at mx.messaging.channels::DirectHTTPChannel/getMessageResponder()[E:\dev\3.0.x\frameworks\pr ojects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:133]
      at mx.messaging::Channel/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\Channe l.as:872]
      at mx.messaging::ChannelSet/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\Cha nnelSet.as:1099]
      at mx.messaging::MessageAgent/internalSend()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\mes saging\MessageAgent.as:1055]
      at mx.messaging::Producer/internalSend()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messagi ng\Producer.as:143]
      at mx.messaging::AbstractProducer/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messagi ng\AbstractProducer.as:469]
      at mx.rpc::AsyncRequest/invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncReques t.as:126]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\ src\mx\rpc\AbstractInvoker.as:248
      at mx.rpc.http::HTTPService/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\HTTP Service.as:758]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.utils::Timer/tick()