feat: 访问日志不跟踪 _blazor 地址

This commit is contained in:
Argo Window10 2019-12-12 13:01:50 +08:00
parent 02c503c977
commit 182f598d84
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ namespace Bootstrap.DataAccess
public static bool Filter(HttpContext context)
{
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>