A potentially dangerous Request.Form value was detected from the client (wresult=“<trust:RequestSecuri…”)

后端 未结 4 935
生来不讨喜
生来不讨喜 2021-01-17 11:18

I am also getting a request validation error when using WIF. I get correctly sent to the STS, but on the way back, I get this validation error.

I followed all the i

4条回答
  •  無奈伤痛
    2021-01-17 11:52

    
    

    after this add

    
        
            
        
    
    

    also in mvc3 there is an AllowHtml attribute

    [AllowHtml]
    public string Property{ get; set; }
    

    here are some useful links

    ASP.NET MVC – pages validateRequest=false doesn’t work?

    Why is ValidateInput(False) not working?

提交回复
热议问题