62,244
社区成员




public async Task<Response> ConnectionValidation1(Request request, IFormCollection files)
byte[] responseBytes = webClient.UploadData(接口地址, "POST", bytes);
services.AddAuthentication(b =>
{
b.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
b.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
b.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
}).AddCookie(b =>
{
//取消认证票据Cookie的SameSite属性
b.Cookie.SameSite = SameSiteMode.None;
//登陆地址
b.LoginPath = "/Account/Login";
//sid
b.Cookie.Name = "My_SessionId";
// b.Cookie.Domain = "shenniu.core.com";
b.Cookie.Path = "/";
b.Cookie.HttpOnly = true;
b.Cookie.Expiration = new TimeSpan(0, 60, 30);
b.ExpireTimeSpan = new TimeSpan(0, 60, 30);
});