The-Mad-Pirate / wiiflash

Automatically exported from code.google.com/p/wiiflash
0 stars 0 forks source link

Crossdomain policy for domain hosted SWF #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload the SWF to an online server
2. Call "connect()" method of a Wiimote instance
3. Flash Player throws an Sandbox-Security error caused by the crossdomain
access

I already simulated a successful scenario. The WiiFlash server needs to be
extended with a listener on port 80. By a request on
http//127.0.0.1:80/crossdomain.xml it has to respond the following lines:

-----------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy>
  <allow-access-from domain="*" secure="false" to-ports="19028"/>
</cross-domain-policy>

-----------------------------------------------------------------

As mentioned this was tested successfully and would be a good solution on
that problem. The "*" is also acceptable since there is no critical data
available from the WiiFlash server.

Original issue reported on code.google.com by erik.lem...@gmail.com on 18 Feb 2008 at 5:35

GoogleCodeExporter commented 9 years ago
I tried this with WiiFlash 0.4.1, and have a crossdomain.xml in my root 
directory. It
didn't work. How do you extend the WiiFlash server with a listener on port 80? 
When I
access my .swf file online, it says:
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox
violation: http://wiimote.chloefan.net/demos/wiipaint2.swf cannot load data from
127.0.0.1:19028.

Original comment by HerChloe...@gmail.com on 5 Aug 2008 at 2:46