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