|
|
|
@ -24,9 +24,9 @@ public class JwtSafeMiddleware
|
|
|
|
|
var ignoreUrl = AppSetting.app(new string[] { "Cors", "IgnorePath" });
|
|
|
|
|
// Console.WriteLine(context.Request.Path);
|
|
|
|
|
var path = context.Request.Path.ToString().ToLower();
|
|
|
|
|
if(ignoreUrl.Split(",", StringSplitOptions.RemoveEmptyEntries).ToArray().Contains(path))
|
|
|
|
|
//if (path.Contains("swagger") || path.Contains("login")|| path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("printtempfile")
|
|
|
|
|
// || path.Contains("favicon") || path.Contains("clientuserlogin") || path.Contains("addbookingstatuslog"))
|
|
|
|
|
//if(ignoreUrl.Split(",", StringSplitOptions.RemoveEmptyEntries).ToArray().Contains(path))
|
|
|
|
|
if (path.Contains("swagger") || path.Contains("login") || path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("printtempfile")
|
|
|
|
|
|| path.Contains("favicon") || path.Contains("clientuserlogin") || path.Contains("addbookingstatuslog") || path.Contains("createbctaskjob"))
|
|
|
|
|
{
|
|
|
|
|
//跳过swagger及login
|
|
|
|
|
}
|
|
|
|
|