A potentially dangerous Request.Form

前端 未结 8 1934
深忆病人
深忆病人 2021-01-08 00:32

Anyone know why I am getting the following error? I have debugging enabled.

Server Error in \'/\' Application.
---------------------------------------------         


        
相关标签:
8条回答
  • 2021-01-08 01:24

    It's because you have HTML tags in your POST request. To allow it you need to Set ValidateRequest= false in your @Page directives. But remember this can expose your site for Cross Site Scripting Attacks.

    0 讨论(0)
  • 2021-01-08 01:29

    Make sure you're changing in the actual Web.config. I was changing it in Web.debug.config and Web.release.config files and it wouldn't work.

    0 讨论(0)
提交回复
热议问题