.net webapi 重定向无效 ,返回页面是 302 但是无法跳转,试过很多方式无法实现,有没有大神做过这个指导下,
var response = actionContext.Request.CreateResponse(HttpStatusCode.Moved);
response.Headers.Location = new Uri("http://www.baidu.com");
actionContext.Response = response;
HttpContext.Current.Response.Write("<script>window.location.href='http://www.baidu.com';</script>");
HttpContext.Current.Response.End();
等等 ,都无效