Feature-Policy: xr-spatial-tracking

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.

Syntax

Feature-Policy: xr-spatial-tracking <allowlist>;
<allowlist>

A list of origins for which the feature is allowed. See Feature-Policy.

Default policy

The default allowlist is 'self'.

Specifications

Specification
WebXR Device API
# permissions-policy

Browser compatibility

BCD tables only load in the browser

See also