In Global.asax
HangfireBootstrapper.Instance.Start();
in Startup
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
app.UseHangfireServer();
app.UseHangfireDashboard();
app.UseHangfireDashboard("/hangfire", new DashboardOptions
{
Authorization = new[] { new NoAuthorizationFilter() }
});
}
public class NoAuthorizationFilter : IDashboardAuthorizationFilter
{
public NoAuthorizationFilter( )
{
}
public bool Authorize ( DashboardContext dashboardContext)
{
return true;
}
}
On development computer I can access dashboard no mater what I have set up as Authorization. After I publish and access it remotely I get a 403 error.