How to bypass flash crossdomain security

crossdomain.xmlflashSecurity

How can I disable crossdomain.xml check when the executing swf has been loaded on localhost?

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://localhost:2541/xxx.swf cannot load data from http://www.com/xxx.swf.

I want to assign full trust to the HTML5 web application running locally. I want to disable any crossdomain checks.

Why?
Some external servers do not provide crossdomain.xml for their hosted SWF files.
I am running locally. I want to have full trust for debugging purposes.

How do I do that?

I will not consider AIR as it cannot be used from HTML5 application.

Adding the url "http://localhost:2541/xxx.swf" to "C:\Users\Arvo\AppData\Roaming\Macromedia\Flash Player#Security\FlashPlayerTrust\u.cfg" did not help.

Ref:

  1. http://www.abdulqabiz.com/blog/archives/2007/03/20/flash-player-trust-flashplayertrust-on-gnulinux/

  2. Running a SWF from file:/// without having the user change their Flash Player security settings

Best Answer

Use the local server to proxy the remote address. Say you want to connect to:

http://someserver.com/whatever

then make a call to:

http://localhost/proxy/someserver.com/whatever

and have the local server application make the actual remote call and proxy the response.

Related Topic