Feature-Policy: publickey-credentials-get
Feature-Policy: publickey-credentials-get
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTTP Feature-Policy
header publickey-credentials-get
directive controls whether the current document is allowed to access the Web Authentication API to retrieve public-key credentials; i.e, via navigator.credentials.get({publicKey: ..., ...})
.
When this policy is enabled, any attempt to query public key credentials will result in an error.
Syntax
Feature-Policy: publickey-credentials-get <allowlist>;
- <allowlist>
-
A list of origins for which the feature is allowed. See
Feature-Policy
.
Default policy
The default allowlist is 'self'
.
Specifications
Specification |
---|
Web Authentication: An API for accessing Public Key Credentials - Level 3 (Web Authentication) # sctn-permissions-policy |
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 | |
publickey-credentials-get |
84 |
84 |
No |
No |
No |
No |
84 |
84 |
No |
No |
No |
14.0 |
See also
-
Feature-Policy
header - Feature Policy
- Using Feature Policy
- Web Authentication API
-
PublicKeyCredential
interface
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy/publickey-credentials-get