AntiforgeryOptions.RequireSsl AntiforgeryOptions.RequireSsl AntiforgeryOptions.RequireSsl Property

Definition

Warning

This API is now obsolete.

This property is obsolete and will be removed in a future version. The recommended alternative is to set on Cookie.

true is equivalent to Always. false is equivalent to None.

Specifies whether SSL is required for the antiforgery system to operate. If this setting is 'true' and a non-SSL request comes into the system, all antiforgery APIs will fail.

[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is to set Cookie.SecurePolicy.")]
public bool RequireSsl { get; set; }
member this.RequireSsl : bool with get, set
Public Property RequireSsl As Boolean

Property Value

Applies to