What 'sensitive information' could be disclosed when setting JsonRequestBehavior to AllowGet

后端 未结 6 644
小蘑菇
小蘑菇 2020-11-30 00:14

I\'ve been getting the same old error every time I test a new URL from my browser\'s address bar when I\'m returning Json (using the built-in

6条回答
  •  盖世英雄少女心
    2020-11-30 00:34

    You must be use JsonRequestBehavior.AllowGet for Json Response like this :

    return Json(YourObject, JsonRequestBehavior.AllowGet);
    

提交回复
热议问题