Browse Source

Fixed cookies

davidfowl/common-services
David Fowler 1 year ago
committed by Reuben Bond
parent
commit
992b58d4bc
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      src/Web/WebMVC/Program.cs
  2. +1
    -1
      src/Web/WebMVC/appsettings.json

+ 5
- 0
src/Web/WebMVC/Program.cs View File

@ -20,6 +20,11 @@ app.UseSession();
// Refer to https://github.com/dotnet-architecture/eShopOnContainers/issues/1391
app.UseCookiePolicy(new CookiePolicyOptions { MinimumSameSitePolicy = SameSiteMode.Lax });
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllerRoute("default", "{controller=Catalog}/{action=Index}/{id?}");
app.MapControllerRoute("defaultError", "{controller=Error}/{action=Error}");
app.MapControllers();


+ 1
- 1
src/Web/WebMVC/appsettings.json View File

@ -10,7 +10,7 @@
"SignalrHubUrl": "http://localhost:5229",
"IdentityUrl": "http://localhost:5223",
"IdentityUrlHC": "http://localhost:5223/hc",
"CallBackUrl": "http://localhost:5100/",
"CallBackUrl": "http://localhost:5331/",
"IsClusterEnv": "False",
"UseResilientHttp": "True",
"UseLoadTest": false,


Loading…
Cancel
Save