!!!
This commit is contained in:
@@ -61,4 +61,3 @@ public class LoginController : Controller {
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
@@ -38,6 +38,12 @@ builder.Services.ConfigureApplicationCookie(o => {
|
||||
ctx.Response.StatusCode = 403;
|
||||
}
|
||||
return Task.CompletedTask;
|
||||
},
|
||||
OnRedirectToReturnUrl = (ctx) => {
|
||||
if (ctx.Request.Path.StartsWithSegments("/api") && ctx.Response.StatusCode == 200) {
|
||||
ctx.Response.StatusCode = 418;
|
||||
}
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user