Alper Ebicoglu
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
18 additions and
15 deletions
-
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/ |
|
|
|
Referenced from https://www.thinktecture.com/en/identity/samesite/prepare-your-identityserver/ |
|
|
|
|