Method: Devise::FailureApp#http_auth_header?
- Defined in:
- lib/devise/failure_app.rb
#http_auth_header? ⇒ Boolean (protected)
It doesn’t make sense to send authenticate headers in AJAX requests or if the user disabled them.
197 198 199 |
# File 'lib/devise/failure_app.rb', line 197 def http_auth_header? scope_class.http_authenticatable && !request.xhr? end |