Skip to main content

init_security_headers

Function init_security_headers 

Source
pub fn init_security_headers(config: Option<SecurityHeadersConfig>)
Expand description

Install the proxy’s security-header policy (call once at startup). See [security_headers]. Install the proxy’s security-header policy from config. Call once at startup before serving. None installs the safe default set (on); a disabled config installs an empty (no-op) policy.