HTTP 403 error remote

dashboard
Tags: #<Tag:0x00007f78b03af248>

#1

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.


#2

You have UseHangfireDashboard() line twice, and the first one is without the authorization filters specified. Seems like a copy-paste issue.