Is this Rails JSON authentication API (using Devise) secure?
You don’t want to disable CSRF, I have read that people think it doesn’t apply to JSON APIs for some reason, but this is a misunderstanding. To keep it enabled, you want to make a few changes: on there server side add a after_filter to your sessions controller: after_filter :set_csrf_header, only: [:new, :create] protected def … Read more