permissionsPolicyDirectiveSupport

Default

{
	permissionsPolicyDirectiveSupport: ["proposed", "standard"],
}

Description

The Permissions-Policy header has had a bit of a rocky history, and as such the list of features/permissions has changed a lot. To help manage this, next-safe provides 4 different sets of directive support.

To include a list of directives, add it to the permissionsPolicyDirectiveSupport array. For example, to add support for experimental directives:

{
	permissionsPolicyDirectiveSupport: ["proposed", "standard", "experimental"],
}

Expand the sections below to find the list of features included in each of the 4 directive sets.

standard

  • accelerometer

  • ambient-light-sensor

  • autoplay

  • battery

  • camera

  • cross-origin-isolated

  • display-capture

  • document-domain

  • encrypted-media

  • execution-while-not-rendered

  • execution-while-out-of-viewport

  • fullscreen

  • geolocation

  • gyroscope

  • magnetometer

  • microphone

  • midi

  • navigation-override

  • payment

  • picture-in-picture

  • publickey-credentials-get

  • screen-wake-lock

  • sync-xhr

  • usb

  • web-share

  • xr-spatial-tracking

proposed

  • clipboard-read

  • clipboard-write

  • gamepad

  • speaker-selection

experimental

  • conversion-measurement

  • focus-without-user-activation

  • hid

  • idle-detection

  • serial

  • sync-script

  • trust-token-redemption

  • vertical-scroll

legacy

  • animations

  • document-write

  • image-compression

  • layout-animations

  • legacy-image-formats

  • max-downscaling-image

  • notifications

  • oversized-images

  • push

  • speaker

  • unsized-media

  • vibrate

  • vr

  • wake-lock

  • webauthn

  • web-share

Last updated