This commit is contained in:
MarcEricMartel
2022-11-01 11:34:09 -07:00
parent 4eb8bb7353
commit 854571dc4d
4 changed files with 16 additions and 5 deletions

View File

@@ -61,4 +61,3 @@ public class LoginController : Controller {
#endregion
}

View File

@@ -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;
}
};
});