ASP.Net Core maxUrlLength

后端 未结 2 1648
天涯浪人
天涯浪人 2020-12-10 13:49

Is there a way to set a maxUrlLength configuration value in Asp.Net Core? I see how this is done in web.config in earlier versions of the framework, for example:

Ho

2条回答
  •  心在旅途
    2020-12-10 14:12

    Maybe this can help

    KestrelServerLimits.MaxRequestLineSize Property

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.server.kestrel.core.kestrelserverlimits.maxrequestlinesize?view=aspnetcore-3.1#Microsoft_AspNetCore_Server_Kestrel_Core_KestrelServerLimits_MaxRequestLineSize

提交回复
热议问题