iam facing
Quote:
System.InvalidOperationException: 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.
. here is the below code. I am using
<a class="visitedlink" target="_blank" href='@Url.Action("PORchecklist_list", "Tables" , new {PORID = @s.PorID })' >@s.OverAllTaskStatus%</a></div>
and clicking on the url it goes to the
PORChecklist_list
function and fetches the list of particular PORID.
PORChecklist
func stores the list of values from dropdown.but i see getting
System.InvalidOperationException
error. Please help me
public ActionResult PORChecklist()
{
List<string> dropdown_content = new List<string>();
dropdown_content = DOMEHelper.FufillmentChecklistPORs();
SelectList list = new SelectList(dropdown_content);
ViewBag.ListOfPORs = list;
return View();
}
public ActionResult PORChecklist_list(string PORID)
{
List<string> Desc = new List<string>();
Desc = WorkItemDescription.GetAllLaunchWorkItemDescription(PORID);
var list = "";
foreach (var a in Desc)
{
list = list + a;
}
return Json(list);
}
What I have tried:
return Json(list, "text/plain");
and
return Json(list,JsonRequestBehavior.AllowGet);
as well.
but still facing the error.