下面我的解决方案是针对.net MVC的,其他的解决方案也类似,就是把响应的mimeType换成IE浏览器已经拥有的。如application/json换成text/plain
#region 退出登录
public ActionResult Logout()
{
ResponseModel response = new ResponseModel();
try
{
_authenticationService.SignOut();
response.StatusCode = ;
response.Message = "退出登录";
}
catch (Exception e)
{
response.StatusCode = ;
response.Message = e.Message;
}
return Json(response, "text/plain", Encoding.UTF8, JsonRequestBehavior.AllowGet);
}
#endregion