setAllowUntrustedHosts
setAllowUntrustedHosts(
allow):void
Defined in: src/auth.ts:34
Installs (or removes) a network-layer handler that trusts every TLS server-trust challenge, including self-signed and expired certificates.
For development and on-premises ArcGIS Enterprise only. Disabling TLS certificate
validation makes all SDK network connections vulnerable to man-in-the-middle attacks — never
call this with true in a production app or against public-internet services.
true→ trust all server-trust challenges (bypass certificate validation).false→ remove the override and restore normal TLS validation (the default).
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void