Browse Source

Fix login issue Exception: Correlation failed (#1516)

Fix samesite issue when running eShop from docker-compose locally as by default http protocol is being used
Refer to https://github.com/dotnet-architecture/eShopOnContainers/issues/1391
pull/1539/head
Yingting Huang 4 years ago
committed by GitHub
parent
commit
d2a1e5ac1e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Web/WebMVC/Startup.cs

+ 4
- 0
src/Web/WebMVC/Startup.cs View File

@ -82,6 +82,10 @@ namespace Microsoft.eShopOnContainers.WebMVC
}
WebContextSeed.Seed(app, env);
// Fix samesite issue when running eShop from docker-compose locally as by default http protocol is being used
// Refer to https://github.com/dotnet-architecture/eShopOnContainers/issues/1391
app.UseCookiePolicy(new CookiePolicyOptions { MinimumSameSitePolicy = AspNetCore.Http.SameSiteMode.Lax });
app.UseRouting();


Loading…
Cancel
Save