Tsing still....
This commit is contained in:
+3
-1
@@ -264,7 +264,7 @@ app.Use(async (ctx, next) =>
|
||||
|
||||
app.Use(async (ctx, next) =>
|
||||
{
|
||||
var af = ctx.Request.Cookies[".Divers.Admin.AntiForgery.v2"];
|
||||
var af = ctx.Request.Cookies[".Divers.Admin.AntiForgery"];
|
||||
app.Logger.LogInformation("AF cookie present={Present} len={Len} prefix={Prefix}",
|
||||
af != null,
|
||||
af?.Length ?? 0,
|
||||
@@ -277,6 +277,8 @@ app.Use(async (ctx, next) =>
|
||||
foreach (var sc in setCookies)
|
||||
if (sc.Contains(".Divers.Admin.AntiForgery", StringComparison.OrdinalIgnoreCase))
|
||||
app.Logger.LogInformation("SET-COOKIE AF: {SetCookie}", sc);
|
||||
else if (sc.Contains(".Divers.Admin.Session", StringComparison.OrdinalIgnoreCase))
|
||||
app.Logger.LogInformation("SET-COOKIE SESSION: {SetCookie}", sc);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user