kripken / BananaBread

BananaBread is a C++ 3D game engine that runs on the web using JavaScript+WebGL+HTML
1.38k stars 346 forks source link

Cannot load the list of multiplayer rooms #45

Open banana-cake opened 10 years ago

banana-cake commented 10 years ago

BananaBread game fails to load the rooms list. If we look at the developer console in FireFox browser ( Nightly 32.0a1 (2014-05-06) ) , we could notice the following error :

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mdsw.ch:8080/socket.io/1/?t=1399415156021. This can be fixed by moving the resource to the same domain or enabling CORS.

This error is preventing the game from loading the rooms list. ForceCORS extension, which helps to disable CORS-related security, cannot solve this problem and is not compatible with latest browsers

SOLUTION: please, enable CORS at your https://mdsw.ch:8080 server . Detailed instructions are in this article - https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

P.S. WebRTC is working (I tried with another application) my router is set up correctly as well so, I strongly believe this is a CORS problem

modeswitch commented 10 years ago

I'll investigate when I have time, but this may also be an issue with the demo site.