connect_return_url_not_allowed
The host of the `return_url` is not among the return domains of the account of the key you use to start the Stripe connection. Only `https` addresses whose exact host (no wildcards) is registered on that account are accepted, so nobody can send the person to a site you do not control.
| Code | Type | HTTP | Category |
|---|---|---|---|
connect_return_url_not_allowed | invalid_request_error | 422 | Integration |
Cause
The host of the return_url is not among the return domains of the account of the key you use to start the Stripe connection. Only https addresses whose exact host (no wildcards) is registered on that account are accepted, so nobody can send the person to a site you do not control.
What to do
Register the host with POST /v1/accounts/{account}/connected-accounts/return-domains, or use in the return_url one that is already registered (GET on the same path), and start again with a new Idempotency-Key.