阅读背景:

MVC反伪造令牌如何在Web服务器重启之间存活?

来源:互联网 

I've implemented anti-forgery protection using the ValidateAntiForgeryTokenAttribute in MVC 5. It is working fine, but in the future we may move to more of a "web farm" approach to hosting. If I run my application in development and go to a form, restart the web server (by restarting the app in Visual Studio) and then submit a form, it doesn't throw the System.Web.Mvc.HttpAntiForgeryException. I've implemented anti-forgery protection using




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

分享到: