Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

一个bug,关于ValidateAntiForgeryToken的 #1134


User avatar
0
huanghm created

bug重现如下:

  1. 后台登录的方法为 [HttpPost] [ValidateAntiForgeryToken] public JsonResult Login() { } 2.页面访问登录页面 <a class="postlink" href="http://admin.xx.com/login">http://admin.xx.com/login</a> 3.__RequestVerificationToken的cookie清除或直接清除浏览器所有的cookie. 4.点击登录,框架会提示错误,错误在 Abp.Web.Mvc.Controllers.AbpController类里面的 #region Exception handling

    protected override void OnException(ExceptionContext context)
    {
    

//Log exception if (_wrapResultAttribute.LogError) { LogHelper.LogException(Logger, context.Exception); } }

这个_wrapResultAttribute是null


No answer yet!