A potentially dangerous Request.Form value was detected from the client (textboxError=“<Response…”)

前端 未结 4 1045
礼貌的吻别
礼貌的吻别 2020-12-03 22:11

I\'m using ozeki ng SMS gateway. I\'m unable to send any SMS to any mobile. Please help me to send SMS through net to mobile

A potentially dangerous Request.Form v

4条回答
  •  春和景丽
    2020-12-03 23:02

    Your problem is that the value of one of your fields (textboxError) includes XML- or HTML-style tags, which by default are disallowed to avoid developers introducing potential security issues within their applications.

    The solution is given in the error message; you need to add

      [HttpPost]
      [ValidateInput(false)]
    

    In Controller

提交回复
热议问题