I know this asked many times but I have different use case. Here it goes.
I have audit trails implemented and I do log every single request. When user submits a post I log user data as well, whatever she/he posts in the form.
Then i get back this error.
I do have [AllowHtml]
annotation also i have done stuff that s recommended on other questions but i dont want to disable request validation. Request passed through my ActionResult.
I have this code that breaks it.
return Json.Encode(new { request.Cookies, request.Headers, request.Files, request.Form, request.QueryString, request.Params });
How can i do this?