Search Unity

Iframing Webgl Issue -- PlayerIO -- Blocked cross-origin frame

Discussion in 'Web' started by Zenithin, Aug 24, 2017.

  1. Zenithin

    Zenithin

    Joined:
    Jun 7, 2016
    Posts:
    35
    Hi,

    I am using Player.io as backend and my game is up on a domain.

    Its a webgl build and it is working fine.

    Now whenever someone try to i-frame my game on their site.. It is throwing them error.
    This is the error in browser.

    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


    Now can anyone tell me if this is an issue on my end, on Player.IO end or at the third site trying to iframe my game.

    I need to clarify the game is working fine on my domain.
     
  2. henrikplayerio

    henrikplayerio

    Joined:
    Nov 4, 2017
    Posts:
    1