immersive-web / cardboard-vr-display

A JavaScript implementation of a WebVR 1.1 VRDisplay
https://immersive-web.github.io/cardboard-vr-display
Apache License 2.0
91 stars 43 forks source link

Detect for cross-origin, not just cross-domain, iframes when on iOS #4

Closed jsantell closed 6 years ago

jsantell commented 6 years ago

From https://github.com/googlevr/webvr-polyfill/issues/271; the window.self !== window.top && window.top.origin !== window.self.origin solution does not work since the iframe does not have access to window.top.origin. Tested with local iframe example on different ports