title: Hangfire Dashboard .net core - authentication works locally, not on server
body: <p>I've implemented authentication for Hangfire Dashboard as recommended (the Dashboard isn't viewable on the server without authentication).</p>
  
  <p>It wasn't working on the server, so I just set Authorize to always be true:</p>
  
  <p>In startup.cs:</p>
  
  <pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      //Other stuff here
      app.UseHangfireDashboard("/hangfire", new DashboardOptions
      {
          Authorization = new[] { new MyAuthorizationFilter() }
      });
  }
  </code></pre>
  
  <p>In my own class:</p>
  
  <pre><code>/// &lt;summary&gt;
  /// Used for Hangfire Dashboard only
  /// &lt;/summary&gt;
  public class MyAuthorizationFilter : IDashboardAuthorizationFilter
  {
      public bool Authorize(DashboardContext context)
      {
          return true;
      }
  }
  </code></pre>
  
  <p>However, even this gets a 403 error returned - yet it works fine locally. The previous auth also works fine locally but not on the server.</p>
  
  <p>I've searched Google but can't find anyone having this error - how can I fix it?</p>
  
  <p>Thanks.</p>