Permissions Policy
The monetization
directive within the HTTP Permissions-Policy header controls whether the current document and any nesting browsing contexts (iframes) are allowed to use the Web Monetization API.
Syntax
The basic syntax is as follows, where allowlist
is a list of origins permitted to use Web Monetization.
Example
Allow Web Monetization in the document and in all nested browsing contexts (iframes) in the same origin.
This is the default policy for monetization
.
Specifications
Specification |
---|
Web Monetization #permissions-policy |