【发布时间】:2012-07-16 21:37:09
【问题描述】:
kendoUI 网格使用 HttpGet 请求在 AJAX 请求期间更新数据。 (http://www.kendoui.com/documentation/asp-net-mvc/helpers/grid/ajax-binding.aspx) 服务器返回一个Json结果,为了让它工作,我们需要使用以下代码:
return Json(Result, JsonRequestBehavior.AllowGet);
这很好,但它是一个安全漏洞(这就是微软让我们把“AllowGet”放在那里的原因)。
返回 Json 的安全方法是在 HttpPost 中,但 kendoui 网格不允许这样做。
我想使用 kendoui 网格。有没有办法使用HttpGet,返回Json,并且安全地做到这一点?
谢谢!
【问题讨论】:
标签: json asp.net-mvc-3 security kendo-ui