HstsOptions.MaxAge 属性

定义

设置 Strict-Transport-Security 标头的 max-age 参数。

public:
 property TimeSpan MaxAge { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxAge { get; set; }
member this.MaxAge : TimeSpan with get, set
Public Property MaxAge As TimeSpan

属性值

注解

最大年龄是必需的;默认为 30 天。 请参阅:https://tools.ietf.org/html/rfc6797#section-6.1.1

适用于