Question by
katiejenkinswebdev · May 31, 2019 at 10:25 PM ·
webglcross-platformiframe
Interacting with an iFrame - Cross Origin Error
I'm embedding my hosted game in an iframe inside of a front-end I've built and am trying to call a method in the game using SendMessage. However, since the game is hosted in a different origin than my front-end, I am getting the error: "SecurityError: Permission denied to access property "gameInstance" on cross-origin object"
I know there are challenges interacting with iframes especially around security. Any great work arounds or best practices you've found? Thanks!
Comment