HSTSEnforcer.hasValidPolicy

bool hasValidPolicy(string domain)

Gets whether hsts_enforcer has a currently valid policy for domain.

Parameters

domaina domain.

Returns

true if access to domain should happen over HTTPS, false

otherwise.