module CsrfExtensions
TODO move to DeviseSessions controller and figure out how to set headers after a redirect. Or even, if this is the right approach
Public Instance Methods
add_new_csrf_token()
click to toggle source
# File lib/ende/csrf_extensions.rb, line 9 def add_new_csrf_token response.headers['X-CSRF-Token'] = form_authenticity_token if request.xhr? end