You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2018. It is now read-only.
/// Specifies the name of the antiforgery token field that is used by the antiforgery system.
74
+
/// <para>
75
+
/// This property is obsolete and will be removed in a future version. The recommended alternative is <seealso cref="CookieBuilder.Name"/> on <see cref="Cookie"/>.
76
+
/// </para>
77
+
/// <para>
78
+
/// Specifies the name of the cookie that is used by the antiforgery system.
79
+
/// </para>
76
80
/// </summary>
77
-
publicstringFormFieldName
78
-
{
79
-
get
80
-
{
81
-
return_formFieldName;
82
-
}
83
-
set
84
-
{
85
-
if(value==null)
86
-
{
87
-
thrownewArgumentNullException(nameof(value));
88
-
}
81
+
/// <remarks>
82
+
/// If an explicit name is not provided, the system will automatically generate a
83
+
/// unique name that begins with <see cref="DefaultCookiePrefix"/>.
84
+
/// </remarks>
85
+
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is "+nameof(Cookie)+"."+nameof(CookieBuilder.Name)+".")]
/// This property is obsolete and will be removed in a future version. The recommended alternative is <seealso cref="CookieBuilder.Path"/> on <see cref="Cookie"/>.
91
+
/// </para>
92
+
/// <para>
93
+
/// The path set on the cookie. If set to <c>null</c>, the "path" attribute on the cookie is set to the current
94
+
/// request's <see cref="HttpRequest.PathBase"/> value. If the value of <see cref="HttpRequest.PathBase"/> is
95
+
/// <c>null</c> or empty, then the "path" attribute is set to the value of <see cref="CookieOptions.Path"/>.
96
+
/// </para>
97
+
/// </summary>
98
+
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is "+nameof(Cookie)+"."+nameof(CookieBuilder.Path)+".")]
/// Specifies the name of the header value that is used by the antiforgery system. If <c>null</c> then
96
-
/// antiforgery validation will only consider form data.
102
+
/// <para>
103
+
/// This property is obsolete and will be removed in a future version. The recommended alternative is <seealso cref="CookieBuilder.Domain"/> on <see cref="Cookie"/>.
104
+
/// </para>
105
+
/// <para>
106
+
/// The domain set on the cookie. By default its <c>null</c> which results in the "domain" attribute not being set.
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is "+nameof(Cookie)+"."+nameof(CookieBuilder.Domain)+".")]
/// This property is obsolete and will be removed in a future version.
116
+
/// The recommended alternative is to set <seealso cref="CookieBuilder.SecurePolicy"/> on <see cref="Cookie"/>.
117
+
/// </para>
118
+
/// <para>
119
+
/// <c>true</c> is equivalent to <see cref="CookieSecurePolicy.Always"/>.
120
+
/// <c>false</c> is equivalent to <see cref="CookieSecurePolicy.None"/>.
121
+
/// </para>
122
+
/// <para>
101
123
/// Specifies whether SSL is required for the antiforgery system
102
124
/// to operate. If this setting is 'true' and a non-SSL request
103
125
/// comes into the system, all antiforgery APIs will fail.
126
+
/// </para>
104
127
/// </summary>
105
-
publicboolRequireSsl{get;set;}
106
-
107
-
/// <summary>
108
-
/// Specifies whether to suppress the generation of X-Frame-Options header
109
-
/// which is used to prevent ClickJacking. By default, the X-Frame-Options
110
-
/// header is generated with the value SAMEORIGIN. If this setting is 'true',
111
-
/// the X-Frame-Options header will not be generated for the response.
112
-
/// </summary>
113
-
publicboolSuppressXFrameOptionsHeader{get;set;}
128
+
[Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is to set "+nameof(Cookie)+"."+nameof(CookieBuilder.SecurePolicy)+".")]
0 commit comments