title: antiforgeryToken to protect some actions on web api called from an angularjs app
body: <p>I Have two web project in visualstudio.net 2013.</p>
  
  <ul>
  <li>One project i a WebApi2 with controllers and actions (simple)</li>
  <li>second project is a pure angularjs app with no MVC or WebApi (I started from an empty web project)</li>
  </ul>
  
  <p>the angularjs application is calling service running on the webApi2 application. </p>
  
  <p>I would like to know if it's possible to protect some actions of my controllers in my webapi2 application with an AntiforgeryToken. (antiforgeryToken attribute)
  I found some post on the web but they require to use AntiForgery.GetTokens in my angular app and Therefore, I have to install all the mvc and razor... nuget packages.
  (see this post : <a href="http://www.fredonism.com/archive/protect-your-web-api-from-csrf-attacks.aspx" rel="nofollow">http://www.fredonism.com/archive/protect-your-web-api-from-csrf-attacks.aspx</a>)</p>
  
  <p>I would like to avoid this or is there a solution to use this antiforgerytoken with a minimal nuget packages installed ?</p>
  
  <p>In other words : is it possible to protect some of my webapi controller actions with antiforgery token without using the MVC stuff.</p>
  
  <p>regards</p>