feat: 访问日志不跟踪 _blazor 地址
This commit is contained in:
parent
02c503c977
commit
182f598d84
|
@ -54,7 +54,7 @@ namespace Bootstrap.DataAccess
|
||||||
public static bool Filter(HttpContext context)
|
public static bool Filter(HttpContext context)
|
||||||
{
|
{
|
||||||
var url = context.Request.Path;
|
var url = context.Request.Path;
|
||||||
return !new string[] { "/api", "/lib", "/NotiHub", "/TaskLogHub", "/swagger", "/CacheList.axd" }.Any(r => url.StartsWithSegments(r, StringComparison.OrdinalIgnoreCase));
|
return !new string[] { "/api", "/lib", "/NotiHub", "/TaskLogHub", "/swagger", "/CacheList.axd", "/_blazor" }.Any(r => url.StartsWithSegments(r, StringComparison.OrdinalIgnoreCase));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue