1. 本地可以正常打开hangfire页面,发布后报401
解决办法
增加CustomAuthorizeFilter
public class CustomAuthorizeFilter : IDashboardAuthorizationFilter
    {
        public bool Authorize([NotNull] DashboardContext context)
        {
            return true;
        }
        public CustomAuthorizeFilter()
        {            
        }
    }
新增类

相关文章: