diff --git a/app/assets/javascripts/user/app/store.js.coffee b/app/assets/javascripts/user/app/store.js.coffee index 8d2cf55f..76dbd68d 100644 --- a/app/assets/javascripts/user/app/store.js.coffee +++ b/app/assets/javascripts/user/app/store.js.coffee @@ -36,3 +36,5 @@ App.ApplicationStore = DS.Store.extend adapter: DS.ActiveModelAdapter.extend host: $data_host namespace: 'user' + headers: + "Accept": "application/json, text/javascript; q=0.01" diff --git a/app/controllers/users/application_controller.rb b/app/controllers/users/application_controller.rb index 7660dd54..7ddd4d31 100644 --- a/app/controllers/users/application_controller.rb +++ b/app/controllers/users/application_controller.rb @@ -1,7 +1,7 @@ module Users class ApplicationController < ::ApplicationController before_action :allow_all_origins - before_action :user_authentication, :unless => ->(c){ %w(obtain_token).include?(c.action_name) || c.request.format.symbol == :html } # , except: [:obtain_token, :index] + before_action :user_authentication, :unless => ->(c){ %w(obtain_token).include?(c.action_name) } # , except: [:obtain_token, :index] private diff --git a/config/version b/config/version index 37d8b0b7..9a542234 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -0.9.24 +0.9.27