当我 返回 Json
(使用内置MVC JsonResult 助手
):
This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a
GET request
. To allowGET requests
, setJsonRequestBehavior
toAllowGet
.
这一次,我想知道 GET
请求暴露 POST
到底是什么,而不是咕哝着确认并启动 Fiddler > 请求没有?
最佳答案
在您的返回中使用以下内容:
return this.Json("you result", JsonRequestBehavior.AllowGet);
关于asp.net-mvc - 将 JsonRequestBehavior 设置为 AllowGet 时可能会泄露什么 'sensitive information',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21452925/