Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Fix exceptions due to bingbot xhrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Aug 7, 2015
1 parent a2d0e37 commit bd684ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

class Api::V1::ApplicationController < ActionController::Base
protect_from_forgery
protect_from_forgery with: :null_session

before_action :authenticate_user_from_token!

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base
rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
render text: exception, status: 500
end
protect_from_forgery
protect_from_forgery with: :null_session

before_action :load_tenant
before_action :authenticate_user!
Expand Down

0 comments on commit bd684ee

Please sign in to comment.