A potentially dangerous Request.Form

前端 未结 8 1930
深忆病人
深忆病人 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:16

    The post contains HTML elements (the

    tag, in your case) - this can be indication of a cross site scripting attack, which is why asp.net does not allow it by default.

    You should either HTML encode before submitting (best practice), or disable the warning and potentially expose yourself to XSS.

提交回复
热议问题