diff --git a/docs/en/Community-Articles/2020-08-12-Patch-Chrome-Login-Issue-For-IdentityServer4/POST.md b/docs/en/Community-Articles/2020-08-12-Patch-Chrome-Login-Issue-For-IdentityServer4/POST.md index a4c40196f2..718a949f3a 100644 --- a/docs/en/Community-Articles/2020-08-12-Patch-Chrome-Login-Issue-For-IdentityServer4/POST.md +++ b/docs/en/Community-Articles/2020-08-12-Patch-Chrome-Login-Issue-For-IdentityServer4/POST.md @@ -182,20 +182,23 @@ Go to`OnApplicationInitialization()` method in `AcmeBookStoreWebModule.cs` add ` ```csharp public override void OnApplicationInitialization(ApplicationInitializationContext context) { - var app = context.GetApplicationBuilder(); - var env = context.GetEnvironment(); - - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - else - { - app.UseErrorPage(); - app.UseHsts(); - } - - app.UseCookiePolicy(); //<--- added this ---> + var app = context.GetApplicationBuilder(); + var env = context.GetEnvironment(); + + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + else + { + app.UseErrorPage(); + app.UseHsts(); + } + + app.UseCookiePolicy(); //<--- added this ---> + + //.... +} ``` @@ -206,4 +209,4 @@ It's all! You are ready to go! --- -Referenced from https://www.thinktecture.com/en/identity/samesite/prepare-your-identityserver/ \ No newline at end of file +Referenced from https://www.thinktecture.com/en/identity/samesite/prepare-your-identityserver/