Sha256: 2ef80bf70b6f72ff2abf51a8f6bf41636d0eb84904fbecb9fd388ddd192f0b62
Contents?: true
Size: 388 Bytes
Versions: 9
Compression:
Stored size: 388 Bytes
Contents
# TODO move to DeviseSessions controller and figure out how to set # headers after a redirect. Or even, if this is the right approach module UsersControllerExtensions extend ActiveSupport::Concern included do before_filter :add_new_csrf_token, only: :show private def add_new_csrf_token response.headers['X-CSRF-Token'] = form_authenticity_token end end end
Version data entries
9 entries across 9 versions & 1 rubygems