Skip to content

Commit dc12b47

Browse files
Add partitioned to cookie for SignalR browser testing (#60728)
* Add partitioned to cookie for SignalR browser testing * Update src/SignalR/clients/ts/FunctionalTests/Startup.cs Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 9e80d98 commit dc12b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SignalR/clients/ts/FunctionalTests/Startup.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger<
184184
{
185185
cookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None;
186186
cookieOptions.Secure = true;
187+
cookieOptions.Extensions.Add("partitioned"); // Required by Chromium
187188

188189
expiredCookieOptions.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.None;
189190
expiredCookieOptions.Secure = true;
191+
expiredCookieOptions.Extensions.Add("partitioned"); // Required by Chromium
190192
}
191193
context.Response.Cookies.Append("testCookie", "testValue", cookieOptions);
192194
context.Response.Cookies.Append("testCookie2", "testValue2", cookieOptions);

0 commit comments

Comments
 (0)