Language

OutboundHostValidator.IsAllowed Method

Definition

Overloads

Name Description
IsAllowed(String)

Determines whether an outbound request to url is permitted.

IsAllowed(Uri)

Determines whether an outbound request to uri is permitted.

IsAllowed(String)

Determines whether an outbound request to url is permitted.

public bool IsAllowed(string url);
abstract member IsAllowed : string -> bool
override this.IsAllowed : string -> bool
Public Function IsAllowed (url As String) As Boolean

Parameters

url
String

The absolute URL that is about to be requested.

Returns

true when enforcement is disabled, or when enforcement is enabled and the URL's host matches the built-in first-party allowlist or a configured host; otherwise false.

Implements

Applies to

IsAllowed(Uri)

Determines whether an outbound request to uri is permitted.

public bool IsAllowed(Uri uri);
abstract member IsAllowed : Uri -> bool
override this.IsAllowed : Uri -> bool
Public Function IsAllowed (uri As Uri) As Boolean

Parameters

uri
Uri

The absolute URI that is about to be requested.

Returns

Implements

Applies to