|
|
|
@ -3,6 +3,7 @@ using System.Text;
|
|
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Authentication.Cookies;
|
|
|
|
|
using Microsoft.AspNetCore.Http.Features;
|
|
|
|
|
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
|
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
|
using Microsoft.OpenApi.Models;
|
|
|
|
|
|
|
|
|
@ -36,6 +37,14 @@ namespace HttpClientStudy.WebApp
|
|
|
|
|
option.IdleTimeout = TimeSpan.FromHours(1);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//配置Kestrel服务器选项
|
|
|
|
|
builder.Services.Configure<KestrelServerOptions>( option =>
|
|
|
|
|
{
|
|
|
|
|
//允许同步 IO 操作(允许get方法有请求body)
|
|
|
|
|
//ASP.NET Core 3.0 之前的版本,AllowSynchronousIO 默认是开启的
|
|
|
|
|
option.AllowSynchronousIO = true;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//토零Form깊데瓊슥朞淃
|
|
|
|
|
builder.Services.Configure<FormOptions>(options =>
|
|
|
|
|
{
|
|
|
|
|