|
@@ -33,7 +33,7 @@ namespace ERP.Framework.Middleware
|
|
|
var path = context.Request.Path.ToString();
|
|
|
var securityConfig = _configuration.GetSection(FrameworkConstant.SECURITY_CONFIG).Get<SecurityConfig>() ?? new SecurityConfig();
|
|
|
|
|
|
- if (securityConfig.WhiteList != null && UrlUtil.Match(w, securityConfig.WhiteList))
|
|
|
+ if (securityConfig.WhiteList != null && UrlUtil.Match(path, securityConfig.WhiteList))
|
|
|
{
|
|
|
await next(context);
|
|
|
return;
|