CSRF issue when using session based authentication for json APIs

This is helpful, thank you!!