krayin/laravel-crm · error · RuntimeException
Blocked redirect to a disallowed webhook endpoint.
Error message
Blocked redirect to a disallowed webhook endpoint.
What it means
Error "Blocked redirect to a disallowed webhook endpoint." thrown in krayin/laravel-crm.
Source
Thrown at packages/Webkul/Automation/src/Services/WebhookService.php:34
/**
* Create a new webhook service instance.
*/
public function __construct(protected PersonRepository $personRepository)
{
$this->client = new Client([
'timeout' => 30,
'connect_timeout' => 10,
'verify' => true,
'http_errors' => false,
'allow_redirects' => [
'max' => 5,
'strict' => true,
'referer' => false,
'protocols' => ['http', 'https'],
'on_redirect' => function ($request, $response, $uri) {
if (! $this->isSafeEndpoint((string) $uri)) {
throw new \RuntimeException('Blocked redirect to a disallowed webhook endpoint.');
}
},
],
]);
}
/**
* Trigger the webhook.
*/
public function triggerWebhook(mixed $data): array
{
if (
! isset($data['method'])
|| ! isset($data['end_point'])
) {
return [
'status' => 'error',
'response' => 'Missing required fields: method or end_point',View on GitHub (pinned to 13d6988cda)
When it happens
Trigger: Thrown at packages/Webkul/Automation/src/Services/WebhookService.php:34 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of krayin/laravel-crm@13d6988cda (2026-08-17).
Data as JSON: /api/errors/0b3ec4585822803c.
Report an issue: GitHub.