.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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章