Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTTP Feature-Policy
header xr-spatial-tracking
directive controls whether the current document is allowed to use the WebXR Device API. This policy controls whether navigator.xr.requestSession()
can return XRSession
that requires spatial tracking and whether user agent can indicate support for sessions supporting spatial tracking via navigator.xr.isSessionSupported()
and devicechange
event on navigator.xr
object.