Forum Multiplayer The Iframe of game not possible?

Discussion and help relating to the PlayerIO Multiplayer API.

The Iframe of game not possible?

Postby Zenithin » August 24th, 2017, 3:15 pm

Hi,
My game is working fine on my domain but as soon as I iframe that page on some other site it is throwing this error.


I am using webgl and unity.
Can someone please help me point where is the issue?
This is the error in browser console.

Uncaught DOMException: Blocked a frame with origin "http://xxxxxxxxxxxx.online" from accessing a cross-origin frame.
at Object.callback (eval at _JS_Eval_EvalJS (blob:http://xxxxxxxxxxxxxxxx.online/539244cxxxxxxxxxxxxxxxxxxxcbee16eab36:2:185106), <anonymous>:6:28)
at WebSocket.window.uws44e98xxxxxxxxxxxxxxxf59fe.ws.onopen (eval at _JS_Eval_EvalJS (blob:http://xxxxxxxxxxxxxxxx.online/5392xxxxxxxxxxxxxxxxxxx7-bcbee16eab36:2:185106), <anonymous>:74:111)
callback @ VM1116:6
window.uws44e9877xxxxxxxxxxxxxdfdff59fe.ws.onopen @ VM1116:74
Zenithin
 
Posts: 8
Joined: August 17th, 2017, 10:52 am

Re: The Iframe of game not possible?

Postby Zenithin » August 28th, 2017, 11:59 am

Hi is there any update on this?
I had also sent a private message with details to Henrik.
Zenithin
 
Posts: 8
Joined: August 17th, 2017, 10:52 am

Re: The Iframe of game not possible?

Postby Zenithin » September 13th, 2017, 6:51 pm

Hi Henrik,
Is there any update to this.

Regards,
Zenithin
Zenithin
 
Posts: 8
Joined: August 17th, 2017, 10:52 am

Re: The Iframe of game not possible?

Postby Henrik » February 13th, 2018, 7:55 pm

Hey Zenithin,

Better late than never, but this issue is finally fixed, and Multiplayer in Unity WebGL games in an iframe now works properly.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm


Return to Multiplayer



cron