mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
bbc5fb9b4d
@ -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;
|
||||
});
|
||||
|
||||
|
@ -130,7 +130,7 @@ namespace OpenAuth.WebApi
|
||||
// options.SuppressModelStateInvalidFilter = true;
|
||||
|
||||
//启动WebAPI自动模态验证,处理返回值
|
||||
options.InvalidModelStateResponseFactory = context =>
|
||||
options.InvalidModelStateResponseFactory = (ActionContext context) =>
|
||||
{
|
||||
var problems = new CustomBadRequest(context);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user