asp.net mvc - Unable to disable "...potentially dangerous Request.Path..." in MVC 3 -



asp.net mvc - Unable to disable "...potentially dangerous Request.Path..." in MVC 3 -

i'm aware there lot of posts on topic, no matter how hard seek (using detail within such posts) can't remove request validation mvc 3.

by way of ugly, simple test have followed these steps:-

open vs , create new sample mvc3 net application. above each on controller actions i've placed [validateinput(false)] attribute. edit root web.config <httpruntime requestvalidationmode="2.0" /> in <system.web /> section.

whilst means can submit forms thing <script> in field, still can't work out how allow request.paths such http://localhost/mysampleapp/account/logon<script>.

if phone call such url still "a potentially unsafe request.path value detected client (<)."

does know how remove request validation in mvc 3 on .net 4.0?

many thanks,

you may find following blog post useful. personal advice avoid using such characters in url paths (unless strictly required) , utilize query string parameters transmitting such info server:

http://localhost/mysampleapp/account/logon?script=%3cscript%3e

asp.net-mvc security

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -