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

后端 未结 6 646
小蘑菇
小蘑菇 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 01:00

    in your return use the following:

    return this.Json("you result", JsonRequestBehavior.AllowGet);
    

提交回复
热议问题