.netcore 报错: 414 uri too long 解决办法

services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(options =>
{//414 uri too long
options.Limits.MaxRequestLineSize = int.MaxValue;
options.Limits.MaxRequestBufferSize = int.MaxValue;
});

 

https://stackoverflow.com/questions/39048189/asp-net-core-maxurllength/39049955#39049955

posted @ 2022-01-17 14:06  Ace001  阅读(517)  评论(1编辑  收藏  举报