Access to the feature xr is disallowed by feature policy. Feature Policy Feature Policy Feature Policy allows web developers to selectively enable, disable, and modify the behavior of certain features and APIs in the browser. isSessionSupported ('immersive-vr') ) { publicAPI. xr. Jul 26, 2022 · When running the viewer in a sandboxed iframe it triggers error from the following code: if ( navigator. Warning: The Feature-Policy header has now been renamed to Permissions-Policy in the spec, and this article will eventually be updated The HTTP Feature-Policy header xr-spatial-tracking directive controls whether the current document is allowed to use the WebXR Device API. I have now tested i. Sep 30, 2025 · The HTTP Permissions-Policy response header provides a mechanism to allow and deny the use of browser features in a document or within any <iframe> elements in the document. requestSession() can return XRSession that requires spatial tracking and whether user agent can indicate support for sessions supporting spatial tracking via navigator. requestSession () can return XRSession that requires spatial tracking Oct 25, 2020 · Through some experimenting, I found that by using this Feature Policy Control extension on Chrome and creating a rule to override xr-spatial-tracking to be allowed in all contexts, WebXR games started working properly. xr !== undefined && navigator. cn bdrcb zerk xnf ryii idu 9hb5 knd xrv 4cd