What are some viable techniques for combining CSRF protection with RESTful APIs?
I'm interested in hearing what approaches people have taken when building a RESTful (or quasi-RESTful) API for their web applications. A practical example: Say you have a traditional browser-based web application which uses CSRF protection on all forms. A hidden input with a CSRF protection token is included in each form presented in the browser. Upon submission of the form, if this input does not match the server-side version of token, the form is considered invalid. Now say you want to expose the web application as an API (perhaps using JSON instead of HTML). Traditionally when publishing an