OutboundUrlPolicy interface
A policy that decides whether an outbound URL is safe to request.
Properties
| enabled | Indicates whether URL validation is enforced. |
Methods
| is |
Determines whether an outbound URL is allowed. |
Property Details
enabled
Indicates whether URL validation is enforced.
enabled: boolean
Property Value
boolean
Method Details
isAllowed(string | URL | null | undefined)
Determines whether an outbound URL is allowed.
function isAllowed(url: string | URL | null | undefined): boolean
Parameters
- url
-
string | URL | null | undefined
The URL to validate.
Returns
boolean
true when the URL is allowed.