TrustedServers

external object TrustedServers(source)

A singleton that contains all of the servers that are trusted. Credentials will be sent with any requests to these servers.

See also

Functions

Link copied to clipboard
fun add(host: String, port: Int)

Adds a trusted server to the registry

Link copied to clipboard
fun clear()

Clears the registry

Link copied to clipboard

Tests whether a server is trusted or not. The server must have been added with the port if it is included in the url.

Link copied to clipboard
fun remove(host: String, port: Int)

Removes a trusted server from the registry