Skip to content

Commit c54ce78

Browse files
committed
Fixed whitelisting of URL
1 parent f3c998a commit c54ce78

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugins/actions/server/builtin_action_types

1 file changed

+1
-1
lines changed

x-pack/plugins/actions/server/builtin_action_types/webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function validateActionTypeConfig(
9595
}
9696

9797
try {
98-
configurationUtilities.ensureWhitelistedUri(configObject.url);
98+
configurationUtilities.ensureWhitelistedUri(url.hostname);
9999
} catch (whitelistError) {
100100
return i18n.translate('xpack.actions.builtin.webhook.webhookConfigurationError', {
101101
defaultMessage: 'error configuring webhook action: {message}',

0 commit comments

Comments
 (0)