greengerong / Prerender_asp_mvc

Prerende client for asp.net mvc
http://prerender.io/
86 stars 39 forks source link

Potentially dangerous request.path #7

Closed craigcollie closed 10 years ago

craigcollie commented 10 years ago

Having some trouble getting this implemented into my project. As soon as I add the PreApplicationStartMethod to my AssemblyInfo.cs, I get a stack trace of: Potentially dangerous request.path was detected from the client.

Is there something I need to add to web.config to get this running?

sant123 commented 8 years ago

@craigcollie What did you do for fixing the issue? Shoud I do this?

<system.web>
    <httpRuntime requestPathInvalidCharacters="<,>,*,%,&,\,?" />
</system.web>

See that I removed the colon ':'

or

<system.web>
    <httpRuntime requestValidationMode="2.0" />
</system.web>

Thanks.