mppx@0.6.0
·
148 commits
to main
since this release
Minor Changes
- e606fa9: Breaking: Removed default
Accept-Paymentheaders on every outgoing request for polyfilled fetch in browsers. Now defaults to same-origin requests in browser environments. Non-browser environments are unaffected. UseacceptPaymentPolicyto control supported payment origins.
Patch Changes
-
e606fa9: Added
acceptPaymentPolicyoption to control when theAccept-Paymentheader is injected on outgoing requests, mitigating CORS preflight failures on non-payment-aware servers.- In browsers,
Fetch.polyfillandMppx.create(withpolyfill: true) default to'same-origin', preventing cross-origin CORS issues. - Non-browser environments and
Mppx.createwithpolyfill: falsedefault to'always'. - Supported values:
'always','same-origin','never',{ origins: string[] }(with*.wildcard support). - Exported
Fetchnamespace frommppx/client.
- In browsers,
-
1a831eb: Fixed Tempo session content gating and SSE plain-response billing to share request-body detection so HTTP/2 POST requests without Content-Length were classified consistently.