阅读背景:

在MVC应用程序中,在哪里验证表单引用者和令牌?

来源:互联网 

I validate all my forms data in the model layer but I also check where my form was submitted from (HTTP Referrer) and I also send a token with the form to help prevent Cross Site Request Forgeries and my question is where should these checks be done? In the controller or in the model layer?I validate all my forms data in the model layer




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: