I'm looking at SS code in github and I can't to find any equivalent to ValidateAntiForgeryToken because I don't want to reinvent the wheel and I'd like to reuse as much as possible the SS framework, I think that a solution could be to create a custom RequestFilterAttribute, any other ideas?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
It looks like that wheel has already been invented:
https://github.com/ServiceStack/ServiceStack/tree/master/src/ServiceStack/Html/AntiXsrf
I ended up by creating a requestFilterAttibute with similar capabilities of the asp.net mvc
this is the code I've done so far: