OSDN Git Service

fix sign in header
[pettanr/pettanr.git] / config / initializers / devise.rb
index cbfbd72..196e97d 100644 (file)
@@ -50,7 +50,7 @@ config.sign_out_via = :get
   # config.http_authenticatable = false
 
   # If http headers should be returned for AJAX requests. True by default.
 # config.http_authenticatable_on_xhr = true
+ config.http_authenticatable_on_xhr = true
 
   # The realm used in Http Basic Authentication. "Application" by default.
   # config.http_authentication_realm = "Application"
@@ -189,7 +189,7 @@ config.scoped_views = true
   #
   # The :"*/*" and "*/*" formats below is required to match Internet
   # Explorer requests.
 # config.navigational_formats = [:"*/*", "*/*", :html]
config.navigational_formats = [:"*/*", "*/*", :html, :json]
 
   # The default HTTP method used to sign out a resource. Default is :delete.
   config.sign_out_via = :delete