fix:关闭csrfToken校验,使其可以正常访问
This commit is contained in:
parent
a599c51fcc
commit
d8aba5f7a9
@ -76,15 +76,6 @@ public class SjzyTrackApiModule : AbpModule
|
|||||||
|
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
app.UseHangfireDashboard("/hangfire", new DashboardOptions
|
|
||||||
{
|
|
||||||
AppPath = configuration["Swagger:JsonUrlPrefix"]! + "/",
|
|
||||||
PrefixPath = System.Diagnostics.Debugger.IsAttached
|
|
||||||
? ""
|
|
||||||
: configuration["Swagger:JsonUrlPrefix"]!,
|
|
||||||
DashboardTitle = "轨迹预警任务",
|
|
||||||
Authorization = new[] { new AnonymousHangfireAuthorizationFilter() }
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseRequestCulture();
|
app.UseRequestCulture();
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
@ -93,6 +84,16 @@ public class SjzyTrackApiModule : AbpModule
|
|||||||
app.UseAbpSwaggerUI(env);
|
app.UseAbpSwaggerUI(env);
|
||||||
app.UseAbpSerilogEnrichers();
|
app.UseAbpSerilogEnrichers();
|
||||||
app.UsePrometheus();
|
app.UsePrometheus();
|
||||||
|
app.UseHangfireDashboard("/hangfire", new DashboardOptions
|
||||||
|
{
|
||||||
|
IgnoreAntiforgeryToken = true,
|
||||||
|
AppPath = configuration["Swagger:JsonUrlPrefix"]! + "/",
|
||||||
|
PrefixPath = System.Diagnostics.Debugger.IsAttached
|
||||||
|
? ""
|
||||||
|
: configuration["Swagger:JsonUrlPrefix"]!,
|
||||||
|
DashboardTitle = "轨迹预警任务",
|
||||||
|
Authorization = new[] { new AnonymousHangfireAuthorizationFilter() }
|
||||||
|
});
|
||||||
|
|
||||||
#region 启动提示
|
#region 启动提示
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user