79746820

Date: 2025-08-26 12:19:53
Score: 0.5
Natty:
Report link

After a few more hours of digging, I think I was finally able to resolve the issue and now when I'm accessing / I get status 200. Respectively this can be changed to any path. Here is the code that I made it working with:

app.Use(async (context, next) =>
{
    if (context.Request.Path == "/")
    {
        context.Response.StatusCode = 200;

        return;
    }

    await next();

});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ivan