摘要: 鉴权(Authentication)授权(Authorization) 简单的理解:鉴权衡量你能不能进一道门,授权是你进门了可以干什么 Cookie 1.HTTP无连接无状态,Cookie和Session就是解决此问题。 2.客户端向服务器端发送一个请求的时,服务端向客户端发送一个Cookie 然后 阅读全文
posted @ 2023-12-28 17:46 leafroc 阅读(253) 评论(0) 推荐(1) 编辑
摘要: 方法一 app.UseExceptionHandler(configure =>{ configure.Run(async context => { var excHandler = context.Features.Get<IExceptionHandlerPathFeature>(); var 阅读全文
posted @ 2023-12-28 12:13 leafroc 阅读(101) 评论(0) 推荐(0) 编辑