Rails API design without disabling CSRF protection
问题 Back in February 2011, Rails was changed to require the CSRF token for all non-GET requests, even those for an API endpoint. I understand the explanation for why this is an important change for browser requests, but that blog post does not offer any advice for how an API should handle the change. I am not interested in disabling CSRF protection for certain actions. How are APIs supposed to deal with this change? Is the expectation that an API client makes a GET request to the API to get a