File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
namespace Microsoft . Net . Http . Headers
5
5
{
6
- // RFC Draft: https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00
6
+ /// <summary>
7
+ /// Indicates if the client should include a cookie on "same-site" or "cross-site" requests.
8
+ /// RFC Draft: https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00
9
+ /// </summary>
10
+ // This mirrors Microsoft.AspNetCore.Http.SameSiteMode
7
11
public enum SameSiteMode
8
12
{
13
+ /// <summary>No SameSite field will be set, the client should follow its default cookie policy.</summary>
9
14
None = 0 ,
15
+ /// <summary>Indicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations.</summary>
10
16
Lax ,
17
+ /// <summary>Indicates the client should only send the cookie with "same-site" requests.</summary>
11
18
Strict
12
19
}
13
20
}
Original file line number Diff line number Diff line change 1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
namespace Microsoft . AspNetCore . Http
5
5
{
6
- // RFC Draft: https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00
6
+ /// <summary>
7
+ /// Used to set the SameSite field on response cookies to indicate if those cookies should be included by the client on future "same-site" or "cross-site" requests.
8
+ /// RFC Draft: https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00
9
+ /// </summary>
7
10
// This mirrors Microsoft.Net.Http.Headers.SameSiteMode
8
11
public enum SameSiteMode
9
12
{
13
+ /// <summary>No SameSite field will be set, the client should follow its default cookie policy.</summary>
10
14
None = 0 ,
15
+ /// <summary>Indicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations.</summary>
11
16
Lax ,
17
+ /// <summary>Indicates the client should only send the cookie with "same-site" requests.</summary>
12
18
Strict
13
19
}
14
20
}
You can’t perform that action at this time.
0 commit comments