diff --git a/x-pack/plugins/actions/server/builtin_action_types/webhook.ts b/x-pack/plugins/actions/server/builtin_action_types/webhook.ts index e37e53652333c..5532364fba36b 100644 --- a/x-pack/plugins/actions/server/builtin_action_types/webhook.ts +++ b/x-pack/plugins/actions/server/builtin_action_types/webhook.ts @@ -95,7 +95,7 @@ function validateActionTypeConfig( } try { - configurationUtilities.ensureWhitelistedUri(configObject.url); + configurationUtilities.ensureWhitelistedUri(url.hostname); } catch (whitelistError) { return i18n.translate('xpack.actions.builtin.webhook.webhookConfigurationError', { defaultMessage: 'error configuring webhook action: {message}',