Feature-Policy: screen-wake-lock
Feature-Policy: screen-wake-lock

Experimental: This is an experimental technologyCheck 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
Screen Wake Lock API # policy-control

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet



screen-wake-lock
No
No
No
No
No
No
No
No
No
No
No
No


See also
 Screen Wake Lock API 
Feature-Policy header Feature Policy Using Feature Policy Default value of the allow list 

    
{'path': 'public/docs/http/headers/feature-policy/screen-wake-lock.html', 'source': 'DevDocs.IO'}