Permissions Policy
A Permissions Policy provides a mechanism for you to explicitly declare what functionality can and cannot be used on your website.
The monetization
policy directive allows you to enable and disable the Web Monetization API within a document and within any of the document’s nested browsing contexts (iframes).
Syntax
Where (allowlist)
is a list of origins permitted to use the Web Monetization API.
The default allowlist is self
.
Example
You want to allow Web Monetization on your website and in all nested browsing contexts (iframes) in the same origin.
You configure your web server to return the Permissions-Policy
HTTP header on each of your pages.
Specifications
Specification |
---|
Web Monetization #permissions-policy |