是否可以在ASP.NET Core中为任何重定向创建拦截器?
我正在创建一个用于检测重定向的工具,并将其显示在管理面板中。
我想以某种方式了解所有重定向,而没有开发人员参与其中。
在ASP.NET核心中是否可以?
如果是,我该怎么做?
I'm creating a tool to detect redirections and show them in an admin panel.
I want to somehow know about all redirections without the developer getting involved.
Is it possible in ASP.NET Core?
If yes, how can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题必须需要开发人员干预,这可以存储在日志中。方便在管理面板中显示记录。
您需要在startup.cs中注册。应该在
app.usethentication();
之后放置。This problem must require developer intervention, which can be stored in logs. Convenient to display records in your admin panel.
You need to register in Startup.cs. It should be placed after
app.UseAuthentication();
.