CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Adobe Flex (http://www.codingforums.com/forumdisplay.php?f=63)
-   -   anyone could help me solve this problem (http://www.codingforums.com/showthread.php?t=215108)

jcardy 01-14-2011 04:14 AM

anyone could help me solve this problem
 
when i access to my payment gateway server, it will display this error.
do i need to put crossdomain.xml in the remote server as well? or only in the server where my .swf file is located?
anyone can help me with these?

thanks

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://center.thehotels.com/myddl/so....swf?hotelID=1 cannot load data from https://emerchantdev.com.my/merchant...Interface.jsp?.
at PGWPage()[C:\Users\Developer\Adobe Flash Builder 4\PGWPage\src\ActionScript\mainScript.as:19]
at _PGWPage_mx_managers_SystemManager/create()
at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\systemClasses\ChildManager.as:304]
at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2810]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2637]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2539]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:515]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

gnomeontherun 01-14-2011 08:06 PM

crossdomain.xml goes on the server where the data is accessed. It doesn't matter if its on your site or not, because the external site has to decide if it wants to give access not you.

jcardy 01-18-2011 06:27 AM

everytime i run my api., it will look for a crossdomain.xml (https://emerchantdev.com.my/crossdomain.xml) but its not avialable, and i don't think that they put that file in their server just for my request.

is there anyway to bypass this one?

Inigoesdr 01-19-2011 02:47 PM

You could build a script in PHP or your favorite language on your server that you could connect to which would serve as a proxy connecting to the other server.


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.