HSTSEnforcer.setSessionPolicy

Sets a session policy for domain.

A session policy is a policy that is permanent to the lifetime of hsts_enforcer's classSession and doesn't expire.

class HSTSEnforcer
void
setSessionPolicy

Parameters

domain string

policy domain or hostname

includeSubdomains bool

true if the policy applies on sub domains