Public · Protected · Private
JsonRequestBehavior to AllowGet
Type: Public  |  Created: 2012-08-26  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • 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 allow GET requests, set JsonRequestBehavior to AllowGet.

    for the following code, Fix is hilighted below...

    public JsonResult JsonData()
    {
        SimpleBlogLink[] mylinks = GetAllLinks();
        return Json(mylinks, JsonRequestBehavior.AllowGet);
    }

    2012-08-26 02:11
This blog is frozen. No new comments or edits allowed.