untrusted

Builds an Untrusted policy from the defaults (ports 80, 443, 8080, 8443; no extra ranges or suffixes; MixedAnswers.Reject; TransportSettings.UntrustedDefaults) and configure.

Return

the policy.

Parameters

configure

assigns the properties to change; empty by default, for the defaults.

Throws

if allowedPorts is empty or holds a port outside 1..65535, a suffix is not a dotted host-name suffix, or a settings { } block breaks a settings rule.


Builds an Untrusted policy that starts from from.

Return

the new policy.

Parameters

from

the policy to start from; never modified.

configure

assigns the properties to change.

Throws

as the other overload does.