Loading

摘要: 都知道在MVC5中,在action方法前加入 [ValidateAntiForgeryToken],会验证是否来自于自己表单的用户,验证其cook的token和来自表单中的token,是否一致为方便更好的调试,直接调用其验证方法 AntiForgery.Validate(); // [AcceptV 阅读全文
posted @ 2019-11-09 22:04 大意了啊 阅读(529) 评论(0) 推荐(0)
摘要: 1.在Core2.2 Startup 中,Configure 方法写入中间件,app.Use public void Configure(IApplicationBuilder app, IHostingEnvironment env) { #region Middleware app.Use(ne 阅读全文
posted @ 2019-11-09 21:33 大意了啊 阅读(511) 评论(0) 推荐(1)