cloudflight
2025-01-13 02c14c9c57dbde72d9c771bd8b0fab1cd023047d
WebApi/HStation.WebApi.Xhs.Core/Startup.cs
@@ -31,13 +31,16 @@
            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>();