Skip to content

validateEndpointUrl

function validateEndpointUrl(
url,
options?,
basePath?
): ValidationResult;

Defined in: src/validation.ts:127

Validate an endpoint destination URL: parseable, https: (or http: for localhost, or anywhere when allowInsecureUrls), no embedded credentials, and passing the host’s optional urlPolicy gate.

Parameter Type Default value
url string undefined
options? UrlPolicyOptions {}
basePath? string "endpoint.url"

ValidationResult