| | |
| | | services.Configure<KestrelServerOptions>(options => |
| | | { |
| | | options.Limits.MaxRequestBodySize = int.MaxValue; |
| | | options.Limits.MaxRequestBufferSize = int.MaxValue; |
| | | options.Limits.MaxResponseBufferSize = int.MaxValue; |
| | | }); |
| | | services.Configure<IISServerOptions>(options => |
| | | { |
| | | options.MaxRequestBodySize = int.MaxValue; |
| | | options.MaxRequestBodyBufferSize = int.MaxValue; |
| | | }); |
| | | |
| | | services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); |
| | | // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); |
| | | |
| | | //// 拦截器 |
| | | services.AddMvcFilter<AuthorizationFilter>(); |