Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

can someone provide full code for implementing anti forgery in web api?

Thanks
Posted

No, no one will hand you all the work you need to do. I suggest searching google for some examples and then if you get stuck on something specific, please come back and show us where you are stuck and we'll gladly help.

Here is one example. http://stephenwalther.com/archive/2013/03/05/security-issues-with-single-page-apps[^]
 
Share this answer
 
Comments
Madhusudan K Moorthy 15-Oct-15 10:42am    
Thanks for the reply,

But I need for web api. MVC I can handle
ZurdoDev 15-Oct-15 10:47am    
You'll need to be more specific with what you mean by "web api." The article I linked to gives an example of a single page web api solution.
Umm, refer this[^] (About 24,400 results (0.22 seconds) :laugh:)

-KR
 
Share this answer
 
Comments
Madhusudan K Moorthy 15-Oct-15 10:37am    
tried the above thing, did not find the one i required

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900