context.Services.ConfigureShareCookies();
app.UseCookiePolicy();
public static class ShareCookiesServiceCollectionExtensions
{
public static IServiceCollection ConfigureShareCookies(this IServiceCollection services)
{
services.Configure<CookiePolicyOptions>(options =>
{
var previousOnAppendCookie = options.OnAppendCookie;
options.OnAppendCookie = cookieContext =>
{
SetCookieDomain(cookieContext, null);
previousOnAppendCookie?.Invoke(cookieContext);
};
var previousOnDeleteCookie = options.OnDeleteCookie;
options.OnDeleteCookie = cookieContext =>
{
SetCookieDomain(null, cookieContext);
previousOnDeleteCookie?.Invoke(cookieContext);
};
});
return services;
}
private static void SetCookieDomain(AppendCookieContext appendCookieContext, DeleteCookieContext deleteCookieContext)
{
if (appendCookieContext != null)
{
appendCookieContext.CookieOptions.Domain = ".abp.io";
}
if (deleteCookieContext != null)
{
deleteCookieContext.CookieOptions.Domain = ".abp.io";
}
}
}
similar https://community.abp.io/posts/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n
I sent you a zip file containing my logs.
I didn't receive it. Can you confirm?
Please share your code to load editModal.js. Thanks
Index.js and modal.cshtml
hi
Can you reproduce the problem in a local development environment?
You can disable the Redis DistributedLock, I will check it in deep.
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.Replace(ServiceDescriptor.Transient<IAbpDistributedLock, LocalAbpDistributedLock>());
}
Add the latest StackExchange.Redis package to your project?
hi
What are request logs in Logs.txt?
hi
Can you try using nginx as Ingress Service ?
hi
XXX.Web/Pages/Account/MySendSecurityCode.cshtml
XXX.Web/Pages/Account/MySendSecurityCode.cshtml.cs
hi
Please share the full logs of the http request.