refuseProviderUrl()
refuseProviderUrl(
url,options):string|undefined
Defined in: eval/src/http-provider.ts:68
Check a provider URL. The host must be a built-in default or in
allowedHosts, and pass the core URL rules without private addresses.
With allowLocal, loopback hosts pass too, over http or https.
Parameters
url
string
Provider URL
options
Pick<ProviderConfig, "allowedHosts" | "allowLocal">
Allowed hosts and the loopback switch
Returns
string | undefined
The reason the URL is refused, or undefined when it passes