Reputation: 22859
I have noticed that in classic ASP.NET MVC there is an Unvalidated
property on Request
which allows Access to raw values provided by the current request.
I cannot identify this property on ASP.NET MVC Core. Is there still a way to Access that information?
Upvotes: 4
Views: 1771
Reputation: 49789
ASP.NET Core doesn't have the same request validation feature as it was in ASP.NET. Here are team responses in GH issue:
RequestValidation was always rather porous, and eventually we came to the realisation that validate should be an app concern, because what's validate for one application isn't valid for another,
and
We have no plans to ever build a request validation middleware like what existed in System.Web.
Also useful: SO Enable asp.net core request validation. If shortly, Model validation should be used instead.
Upvotes: 7