Repository navigation
Security
- Restrict authenticated requests to trusted origins before attaching API keys or OAuth tokens.
MollieApiClienttrusts the configured API endpoint andhttps://api.mollie.com. Untrusted links throwUntrustedUrlException. This protects resource links and pagination, including resources hydrated from webhook snapshots. See #956. - Match the URL scheme, host, effective port, and user info against the trusted origin. Strip URL fragments before passing URLs to cURL.
- Configure custom API hosts explicitly. Custom
Connectorimplementations can implementMollie\Api\Contracts\DefinesTrustedOriginsto declare trusted origins. Without that contract, only the origin ofresolveBaseUrl()is trusted. Tests and fakes must use trusted URLs too. - Webhook signature verification remains required. This guard is defense in depth, not a replacement for verifying webhook payloads.
Full changelog: v4.1.0...v4.1.1