redirect_url_not_allowed
`return_url` or `cancel_url` is not under an allowed redirect domain, or is not HTTPS.
| HTTP status | 400 |
| Error type | invalid_request_error |
| Retry | No. Fix the request. |
What to do
Add the domain under Settings → Account in the dashboard. In test mode `http://localhost` is always allowed.
Response shape
{
"error": {
"type": "invalid_request_error",
"code": "redirect_url_not_allowed",
"message": "…",
"doc_url": "https://docs.borga.is/errors/redirect_url_not_allowed",
"request_id": "req_…"
}
}See all error codes and how to handle them.