Permissions-Policy: screen-wake-lock
The HTTP
Permissions-Policy
header
screen-wake-lock
directive controls whether the current document is allowed to use
Screen Wake Lock API
to indicate that the device should not dim or turn off the screen.
Specifically, where a defined policy blocks use of this feature,
WakeLock.request()
calls will return a
Promise
that rejects with a
DOMException
of type
NotAllowedError
.
The default allowlist for
screen-wake-lock
is
self
.
BCD tables only load in the browser