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
This commit is contained in:
parent
2711d33e3f
commit
d2a1e5ac1e
@ -83,6 +83,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();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
Loading…
x
Reference in New Issue
Block a user