We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041325f commit 7e79d8fCopy full SHA for 7e79d8f
MaiChartManager/AuthenticationMiddleware.cs
@@ -11,7 +11,7 @@ public AuthenticationMiddleware(RequestDelegate next)
11
12
public async Task Invoke(HttpContext context)
13
{
14
- if (!context.User.Identity.IsAuthenticated)
+ if (!context.User.Identity.IsAuthenticated && context.Connection.LocalPort == 5001)
15
16
context.Response.StatusCode = StatusCodes.Status401Unauthorized;
17
context.Response.Headers.Append("WWW-Authenticate", "Basic");
0 commit comments