Gates Accept-Payment header injection on outgoing HTTP requests.
Without a gate, a global payment middleware advertises supported payment methods on every cross-origin request, which can break CORS preflight and leak wallet capabilities.
Defaults to :always for backwards compatibility (matches mpp-rs
AcceptPaymentPolicy::Always).
API Functions
| Function | Arity | Description | Param Kinds |
|---|---|---|---|
default | 0 | Return the default policy (:always). | - |
allows? | 2 | Return true if Accept-Payment injection is permitted for url. | policy: value, url: value |
Summary
Functions
Return true if Accept-Payment header injection is permitted for url.
Return the default policy (:always).