Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add CSRF protection when using cookie authentication #177
In #37, we're removing Basic authentication. This leaves only cookie authentication (that is, built-in WP authentication) by default in the API, with other forms of authentication handled independently.
To avoid possible CSRF, we should check against a nonce field when using cookie authentication.