Request.IsAjaxRequest()总是返回false

发现filterContext.HttpContext.Request.IsAjaxRequest()总是返回false

前端使用axios.post() 时,返回false.

前端使用$.ajax() 时,返回true.

小人才疏学浅,看官不喜勿喷,谢谢
原文地址:https://www.cnblogs.com/feiqilai/p/15497399.html