Feature-Policy: web-share
Feature-Policy: web-share
The HTTP Feature-Policy
header web-share
directive controls whether the current document is allowed to use the Navigator.share()
method of the Web Share API to share text, links, images, and other content to arbitrary destinations of the user's choice.
Syntax
-
<allowlist>
-
A list of origins for which the feature is allowed. See Feature-Policy
.
Default policy
The default value is 'self'
.
Specifications
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 |
web-share |
No
|
No
|
81
["Only supported through the allow attribute on <iframe> elements.", "Firefox recognizes the web-share permissions policy, but this has no effect in versions of Firefox that do not support the share() method."]
|
No
|
No
|
No
|
No
|
No
|
81
Only supported through the allow attribute on <iframe> elements.
|
No
|
No
|
No
|
Browser implementation is being discussed in https://github.com/w3c/web-share/issues/169.