Feature-Policy: screen-wake-lock
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTTP Feature-Policy header screen-wake-lock directive controls whether the current document is allowed to use Screen Wake Lock API to indicate that device should not dim or turn off the screen.
Note: In earlier specification drafts this directive was called wake-lock.
Syntax
Feature-Policy: screen-wake-lock <allowlist>;
- <allowlist>
-
A list of origins for which the feature is allowed. See
Feature-Policy.
Default policy
Default allow list for screen-wake-lock is 'self'.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Permissions Policy | Editor's Draft | Initial definition. |
| Screen Wake Lock API | Editor's Draft | Initial definition of screen-wake-lock feature directive. |
Browser compatibility
BCD tables only load in the browser