checkServerTrust

suspend fun checkServerTrust(url: String, settingName: String)

Checks if the given url can be trusted according to a given server setting name.

Allowed url must be an HTTPS url and must match one of the host/path patterns listed in the named setting.

Parameters

url

url to check

settingName

server setting that should hold a list of patterns