I am using a standard MVC Controller to receive requests in raw httppost form fashion. No model objects. I want to suppress the check for potentially dangerous request form value on one of the form fields being passed. I expect HTML/XML to be entered into this field.
When I access the the HttpContext.Request.Form["XMLCode"] I don't care that it could be potentially dangerous. How can I suppress this validation?
Do I need to change this to an APIController instead of standard MVC Controller?
I have already tried adding the [ValidateInput(false)] but that did not work.