更新时间:2023-09-20 22:08:16
我需要配置 StatusCodePages 中间件,以避免重定向.
I needed to configure the StatusCodePages middleware to avoid the redirect.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
...
app.UseStatusCodePages();
...
}