Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
wintel 2024-11-29 22:55:00 +08:00
commit bbc5fb9b4d
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ namespace OpenAuth.Mvc
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
//关闭GDPR规范
options.CheckConsentNeeded = context => false;
options.CheckConsentNeeded = (HttpContext context) => false;
options.MinimumSameSitePolicy = SameSiteMode.None;
});

View File

@ -130,7 +130,7 @@ namespace OpenAuth.WebApi
// options.SuppressModelStateInvalidFilter = true;
//启动WebAPI自动模态验证处理返回值
options.InvalidModelStateResponseFactory = context =>
options.InvalidModelStateResponseFactory = (ActionContext context) =>
{
var problems = new CustomBadRequest(context);